[Qt-interest] Qt::Key_Menu and ContextMenu (X11 vs QWS)
Karl Krach
mailinglists at bluespirit.la
Mon Jan 23 16:41:19 CET 2012
Hello,
there is a menu key on most keyboards and the documentation says, that
on Windows the Key_Menu triggers the context menu. On Linux it does the
same - but on QWS it does not. Is it implemented on purpose that the
Qt::Key_Menu is not always mapped to "sendEvent(new ContextMenu());"?
I merged the implementation of qkeymapper_x11.cpp:1845 into my
CustomApplication::event() method. It just listens on the incoming key
presses and send an event to the focus widget. On X11 the context menu
is only opened once - but on QWS every Key_Menu press opens another
context menu, thus 10xKey_Menu need 10xESC to close them. The only
difference I see is that Qt sends spontaneous events - and I send
events. What else could be wrong/different?
Best regards,
Charly
More information about the Qt-interest-old
mailing list