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