Return false from wxKeyEvent::IsKeyInCategory(WXK_TAB) for Ctrl+I
Although TAB and Ctrl+I generate the same key code in the events passed to wxEVT_CHAR handlers, it seems more reasonable to only consider the former to be in "TAB category", but not the latter. See #10268. Closes #24254.
This commit is contained in:
parent
6053381b34
commit
460c35ff0e
2 changed files with 60 additions and 2 deletions
|
|
@ -1300,10 +1300,20 @@ enum wxKeyCategoryFlags
|
|||
/// home and end keys, on and off numeric keypads
|
||||
WXK_CATEGORY_JUMP,
|
||||
|
||||
/// tab key, on and off numeric keypads
|
||||
/**
|
||||
Tab key, on and off numeric keypads.
|
||||
|
||||
Note that while `Ctrl+I` and `TAB` keys generate the same key code,
|
||||
only the latter is considered to be in this category.
|
||||
*/
|
||||
WXK_CATEGORY_TAB,
|
||||
|
||||
/// backspace and delete keys, on and off numeric keypads
|
||||
/**
|
||||
Backspace and delete keys, on and off numeric keypads.
|
||||
|
||||
Note that while `Ctrl+H` and `BACKSPACE` keys generate the same key
|
||||
code, only the latter is considered to be in this category.
|
||||
*/
|
||||
WXK_CATEGORY_CUT,
|
||||
|
||||
/// union of WXK_CATEGORY_ARROW, WXK_CATEGORY_PAGING, and WXK_CATEGORY_JUMP categories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue