Jean-Marc Lasgouttes <lasgout...@lyx.org> writes: > 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 ^^^^ignore()
> 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). FYI, the qt3support code does: inline QT3_SUPPORT_CONSTRUCTOR QKeyEvent(Type type, int key, int /*ascii*/, int modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1) : QInputEvent(type, (Qt::KeyboardModifiers)(modifiers & (int)Qt::KeyButtonMask)), txt(text), k(key), c(count), autor(autorep) { if (key >= Qt::Key_Back && key <= Qt::Key_MediaLast) ignore(); } I did not manage to find any similar code in qt 4.x. However, we could maybe just use something like that. Any qt internals specialist around here? JMarc