Fix checking key categories in wxKeyEvent::IsKeyInCategory()
WXK_END key belongs to WXK_CATEGORY_JUMP (not WXK_CATEGORY_PAGING) and WXK_PAGEUP belongs to WXK_CATEGORY_PAGING (not WXK_CATEGORY_JUMP).
This commit is contained in:
parent
d3adf5e464
commit
962327dec0
1 changed files with 2 additions and 2 deletions
|
|
@ -824,13 +824,13 @@ bool wxKeyEvent::IsKeyInCategory(int category) const
|
|||
return (category & WXK_CATEGORY_ARROW) != 0;
|
||||
|
||||
case WXK_PAGEDOWN:
|
||||
case WXK_END:
|
||||
case WXK_PAGEUP:
|
||||
case WXK_NUMPAD_PAGEUP:
|
||||
case WXK_NUMPAD_PAGEDOWN:
|
||||
return (category & WXK_CATEGORY_PAGING) != 0;
|
||||
|
||||
case WXK_HOME:
|
||||
case WXK_PAGEUP:
|
||||
case WXK_END:
|
||||
case WXK_NUMPAD_HOME:
|
||||
case WXK_NUMPAD_END:
|
||||
return (category & WXK_CATEGORY_JUMP) != 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue