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:
Anton Triest
2020-03-16 00:34:31 +01:00
committed by Vadim Zeitlin
parent 0c6d6e6472
commit 730b3d1a44

View File

@@ -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.