X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64ac3db840a3b4496131a11817926859b4eab870..ff534ba469473a9ace193e736ca131144df307f9:/src/common/treebase.cpp diff --git a/src/common/treebase.cpp b/src/common/treebase.cpp index 4c0965c435..f831b489ad 100644 --- a/src/common/treebase.cpp +++ b/src/common/treebase.cpp @@ -363,7 +363,7 @@ void wxTreeCtrlBase::OnCharHook(wxKeyEvent& event) // fall through case WXK_RETURN: - EndEditLabel(GetSelection(), discardChanges); + EndEditLabel(GetFocusedItem(), discardChanges); // Do not call Skip() below. return;