Ensure that we accept WXK_XXX in RegisterHotKey() in wxMSW

RegisterHotKey() wrongly expected to be given VK_XXX MSW virtual key
code constant, which couldn't work in portable code, so fix it to accept
WXK_XXX constants, while preserving compatibility by still accepting
VK_XXX values not clashing with them.
This commit is contained in:
Vadim Zeitlin
2019-05-02 20:53:18 +02:00
parent 12385d3586
commit 542aafff39
3 changed files with 62 additions and 1 deletions

View File

@@ -3758,7 +3758,8 @@ public:
or wxMOD_WIN specifying the modifier keys that have to be pressed along
with the key.
@param virtualKeyCode
The virtual key code of the hotkey.
The key code of the hotkey, e.g. an ASCII character such as @c 'K'
or one of elements of wxKeyCode enum.
@return @true if the hotkey was registered successfully. @false if some
other application already registered a hotkey with this