Recognize the numpad cursor keys too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-08-21 16:48:25 +00:00
parent ab718f6e4c
commit 340515d36d
2 changed files with 12 additions and 0 deletions

View File

@ -917,6 +917,12 @@ int ScintillaWX::DoKeyDown(const wxKeyEvent& evt, bool* consumed)
case WXK_END: key = SCK_END; break;
case WXK_PAGEUP: key = SCK_PRIOR; break;
case WXK_PAGEDOWN: key = SCK_NEXT; break;
case WXK_NUMPAD_DOWN: key = SCK_DOWN; break;
case WXK_NUMPAD_UP: key = SCK_UP; break;
case WXK_NUMPAD_LEFT: key = SCK_LEFT; break;
case WXK_NUMPAD_RIGHT: key = SCK_RIGHT; break;
case WXK_NUMPAD_HOME: key = SCK_HOME; break;
case WXK_NUMPAD_END: key = SCK_END; break;
case WXK_NUMPAD_PAGEUP: key = SCK_PRIOR; break;
case WXK_NUMPAD_PAGEDOWN: key = SCK_NEXT; break;
case WXK_DELETE: key = SCK_DELETE; break;

View File

@ -917,6 +917,12 @@ int ScintillaWX::DoKeyDown(const wxKeyEvent& evt, bool* consumed)
case WXK_END: key = SCK_END; break;
case WXK_PAGEUP: key = SCK_PRIOR; break;
case WXK_PAGEDOWN: key = SCK_NEXT; break;
case WXK_NUMPAD_DOWN: key = SCK_DOWN; break;
case WXK_NUMPAD_UP: key = SCK_UP; break;
case WXK_NUMPAD_LEFT: key = SCK_LEFT; break;
case WXK_NUMPAD_RIGHT: key = SCK_RIGHT; break;
case WXK_NUMPAD_HOME: key = SCK_HOME; break;
case WXK_NUMPAD_END: key = SCK_END; break;
case WXK_NUMPAD_PAGEUP: key = SCK_PRIOR; break;
case WXK_NUMPAD_PAGEDOWN: key = SCK_NEXT; break;
case WXK_DELETE: key = SCK_DELETE; break;