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.
This commit is contained in:
committed by
Vadim Zeitlin
parent
0c6d6e6472
commit
730b3d1a44
@@ -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.
|
||||
|
Reference in New Issue
Block a user