[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: Patch for LyX to ignore multimedia keys
From:       "Ben M." <maresr12temp () gmail ! com>
Date:       2009-06-30 20:12:24
Message-ID: e03c648c0906301312k5a57a3e4ndfe2521581c0ab0d () mail ! gmail ! com
[Download RAW message or body]

On Tue, Jun 30, 2009 at 5:12 AM, Jean-Marc Lasgouttes<lasgouttes@lyx.org> wrote:
> What I would like (but I have not understood yet where to do that) is to
> use reject() only when we have an unknown keysym. We should not reject
> events because M-C-j is not bound currently, but because a given
> multimedia key is not handled by LyX (i.e. for example because
> qkey_to_string returns an empty string).
>
> Do you see what I mean? Could you have a go at it?

Sure, how's this?
  http://www.lyx.org/trac/attachment/ticket/6043/multimediakeys3.diff
I define
  known = !(qkey_to_string(key_) == "");
Then when LyX throws "Unknown function" and the qkey is unknown, it ignore()s.

-Ben
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic