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:
@@ -824,13 +824,13 @@ bool wxKeyEvent::IsKeyInCategory(int category) const
|
|||||||
return (category & WXK_CATEGORY_ARROW) != 0;
|
return (category & WXK_CATEGORY_ARROW) != 0;
|
||||||
|
|
||||||
case WXK_PAGEDOWN:
|
case WXK_PAGEDOWN:
|
||||||
case WXK_END:
|
case WXK_PAGEUP:
|
||||||
case WXK_NUMPAD_PAGEUP:
|
case WXK_NUMPAD_PAGEUP:
|
||||||
case WXK_NUMPAD_PAGEDOWN:
|
case WXK_NUMPAD_PAGEDOWN:
|
||||||
return (category & WXK_CATEGORY_PAGING) != 0;
|
return (category & WXK_CATEGORY_PAGING) != 0;
|
||||||
|
|
||||||
case WXK_HOME:
|
case WXK_HOME:
|
||||||
case WXK_PAGEUP:
|
case WXK_END:
|
||||||
case WXK_NUMPAD_HOME:
|
case WXK_NUMPAD_HOME:
|
||||||
case WXK_NUMPAD_END:
|
case WXK_NUMPAD_END:
|
||||||
return (category & WXK_CATEGORY_JUMP) != 0;
|
return (category & WXK_CATEGORY_JUMP) != 0;
|
||||||
|
Reference in New Issue
Block a user