"Ben M." <maresr12t...@gmail.com> writes: > On Tue, Jun 30, 2009 at 5:12 AM, Jean-Marc Lasgouttes<lasgout...@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_) == "");
First incident remark: use known = !qkey_to_string(key_).empty(); instead. > Then when LyX throws "Unknown function" and the qkey is unknown, it > ignore()s. What I would like is to drop the "Unknown function part" and only test on isKnown. Could you test whether this suffices? JMarc