Le 1 juil. 09 à 22:02, Ben M. a écrit :
Thank you. I don't yet know proper C++ syntax, so I will do these
silly things while I learn.
No problem, I am here just for that. You are a very efficient student :)
What I would like is to drop the "Unknown function part" and only
test
on isKnown. Could you test whether this suffices?
Hmm, how about this:
http://www.lyx.org/trac/attachment/ticket/6043/multimediakeys4.diff
In summary, I abandoned isKnown, and just redefined isOK with
- bool const ok = !(text_.empty() && key_ == Qt::Key_unknown);
+ bool const ok = !(text_.empty() && qkey_to_string(key_).empty());
Consequently, multimedia keys are immediately discarded, so there's no
"Unknown function." Is this the behavior you want?
I hoped there would be a solution that would avoid changing LyXFunc at
all
and just ignore() early when the key event are unknown.
BTW, did you check whether compose keys still work (assuming you are
on linux)?
Thanks for your persistence!
JMarc