From 730b3d1a44d4a919aa5f7b1384eca5b0543d2465 Mon Sep 17 00:00:00 2001 From: Anton Triest Date: Mon, 16 Mar 2020 00:34:31 +0100 Subject: [PATCH] Allow accepting edit with Numpad Enter key in wxTreeCtrl too This key should work in the same way as normal Enter key and accept the changes. Closes #18682. --- src/common/treebase.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/treebase.cpp b/src/common/treebase.cpp index d1493de28d..f3b11d3b11 100644 --- a/src/common/treebase.cpp +++ b/src/common/treebase.cpp @@ -357,6 +357,7 @@ void wxTreeCtrlBase::OnCharHook(wxKeyEvent& event) wxFALLTHROUGH; case WXK_RETURN: + case WXK_NUMPAD_ENTER: EndEditLabel(GetFocusedItem(), discardChanges); // Do not call Skip() below.