From a8d80225292ffce2a07ee62203b588e7f0153a00 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 2 Feb 2023 17:13:09 +0100 Subject: [PATCH] Allow using F2 for renaming items in the treectrl sample This makes it simpler to test this functionality and it's also the standard key for doing this, at least under MSW. --- samples/treectrl/treetest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/treectrl/treetest.cpp b/samples/treectrl/treetest.cpp index d75bc7dd2f..1adf9954c8 100644 --- a/samples/treectrl/treetest.cpp +++ b/samples/treectrl/treetest.cpp @@ -291,7 +291,7 @@ MyFrame::MyFrame(const wxString& title, int x, int y, int w, int h) tree_menu->Append(TreeTest_DecSpacing, "Reduce spacing by 5 points\tCtrl-R"); item_menu->Append(TreeTest_Dump, "&Dump item children"); - item_menu->Append(TreeTest_Rename, "&Rename item..."); + item_menu->Append(TreeTest_Rename, "&Rename item...\tF2"); item_menu->AppendSeparator(); item_menu->Append(TreeTest_SetBold, "Make item &bold");