From 37b2918c9cea32c395fbcdeaa2eb580098193016 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 26 May 2020 01:58:21 +0200 Subject: [PATCH] Don't consume all 'C'/Insert key presses in wxGrid Skip the key events other than Ctrl-C/Ins which are used for copying grid contents to the clipboard, notably Alt-C which should still be usable for opening the menus. This fixes a problems introduced in 67c1c412c6 (Implement support for copying wxGrid cells to clipboard, 2020-04-26), see #13562. --- src/generic/grid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 15104f0d8f..33966c056c 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -5955,8 +5955,9 @@ void wxGrid::OnKeyDown( wxKeyEvent& event ) } wxTheClipboard->SetData(new wxTextDataObject(buf)); + break; } - break; + wxFALLTHROUGH; #endif // wxUSE_CLIPBOARD default: