]> git.saurik.com Git - wxWidgets.git/commitdiff
Treat the numpad enter key the same as the main enter key
authorRobin Dunn <robin@alldunn.com>
Mon, 21 Feb 2005 17:32:16 +0000 (17:32 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 21 Feb 2005 17:32:16 +0000 (17:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/stc/ScintillaWX.cpp
src/stc/ScintillaWX.cpp

index 779ac2a3df0daca99e3f195e256a89acf4026a5d..427a83e6bd689db728cf85d7b50e0aa6c7b3409a 100644 (file)
@@ -861,6 +861,7 @@ int  ScintillaWX::DoKeyDown(const wxKeyEvent& evt, bool* consumed)
     case WXK_ESCAPE:            key = SCK_ESCAPE;   break;
     case WXK_BACK:              key = SCK_BACK;     break;
     case WXK_TAB:               key = SCK_TAB;      break;
+    case WXK_NUMPAD_ENTER:      // fall through
     case WXK_RETURN:            key = SCK_RETURN;   break;
     case WXK_ADD:               // fall through
     case WXK_NUMPAD_ADD:        key = SCK_ADD;      break;
index 779ac2a3df0daca99e3f195e256a89acf4026a5d..427a83e6bd689db728cf85d7b50e0aa6c7b3409a 100644 (file)
@@ -861,6 +861,7 @@ int  ScintillaWX::DoKeyDown(const wxKeyEvent& evt, bool* consumed)
     case WXK_ESCAPE:            key = SCK_ESCAPE;   break;
     case WXK_BACK:              key = SCK_BACK;     break;
     case WXK_TAB:               key = SCK_TAB;      break;
+    case WXK_NUMPAD_ENTER:      // fall through
     case WXK_RETURN:            key = SCK_RETURN;   break;
     case WXK_ADD:               // fall through
     case WXK_NUMPAD_ADD:        key = SCK_ADD;      break;