X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64ac3db840a3b4496131a11817926859b4eab870..5ca21fe7bfda18e2da4e17eb529c4dfa0c824db2:/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;