From 60f85f5a39c33f6ceac785397f731f0d6cab069f Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 11 Mar 2017 16:23:57 +0000 Subject: [PATCH] Win32: fix invalid accelerator labels. --- src/graphicswin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphicswin.cpp b/src/graphicswin.cpp index 4413bb64..1c445808 100644 --- a/src/graphicswin.cpp +++ b/src/graphicswin.cpp @@ -183,6 +183,7 @@ std::string SolveSpace::MakeAcceleratorLabel(int accel) { if(accel & GraphicsWindow::SHIFT_MASK) { label += "Shift+"; } + accel &= ~(GraphicsWindow::CTRL_MASK | GraphicsWindow::SHIFT_MASK); if(accel >= GraphicsWindow::FUNCTION_KEY_BASE + 1 && accel <= GraphicsWindow::FUNCTION_KEY_BASE + 12) { label += ssprintf("F%d", accel - GraphicsWindow::FUNCTION_KEY_BASE);