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