Comment 24 for bug 1803556

Revision history for this message
jean-pierre charras (jp-charras) wrote :

In fact there are a (ugly) trick on Windows:
When a hotkey (handled by our EVT_CHAR event handler), is added in a menuitem, it is seen as accelerator key, but mainly we just want it shown as a comment.
For instance the H hotkey is added as "\tH" string to the menu, and therefore is seen by wxWidgets as a menu accelerator.
The trick is to add: "\t H" or "\tH " (note the space char) and the hotkey is no longer seen as a accelerator key, and is not captured by the menuitem.
Of course it imply accelerator keys do not exist in menus, all keys are hotkeys managed by our EVT_CHAR event handler