Hotkey question

5 views
Skip to first unread message

Andre F

unread,
Dec 31, 2022, 3:54:13 AM12/31/22
to wx-u...@googlegroups.com

Is it possible to make it so a hotkey will only work in a specific simplebook panel?

Right now my hotkeys are working, but I noticed they work even when I don't want them to work.

Regards

Gunter Königsmann

unread,
Dec 31, 2022, 4:47:37 AM12/31/22
to wx-u...@googlegroups.com, Andre F
Hotkeys are hotkeys: They Work in the whole application, in my experience at least If the Key Event that Gets informed about the journey press issues a event.Skip().

What you can do, though, is to catch the wxKeyEvent in your book and handle the hotkey by hand.

Be aware,though, if you are working on a multilingual application that the excellent hotkey in one keyboard might be the way to enter a backslash or a unit mu on the other => hotkeys need to be translated along with the rest of the application which is why the "\t hotkey" mechanism is this great.

Kind regards,

   Gunter.
Reply all
Reply to author
Forward
0 new messages