From 6a33e8303a78d74d70684883590ad5d2a966ffb6 Mon Sep 17 00:00:00 2001 From: James Crook Date: Sun, 7 May 2017 11:17:18 +0100 Subject: [PATCH] Bug 1641 - Follow up. NUMPAD_ENTER, Backspace, Delete 3 Keys that were already illegal now added back with a space before them. This should fix these keys in 1641 too. --- src/commands/CommandManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/CommandManager.cpp b/src/commands/CommandManager.cpp index 83111b886..a2fc162f9 100644 --- a/src/commands/CommandManager.cpp +++ b/src/commands/CommandManager.cpp @@ -999,10 +999,10 @@ wxString CommandManager::GetLabelWithDisabledAccel(const CommandListEntry *entry if( entry->key.StartsWith("7")) break; if( entry->key.StartsWith("8")) break; if( entry->key.StartsWith("9")) break; - // No accelerator. - Accel = ""; + // Uncomment the below so as not to add the illegal accelerators. + // Accel = ""; //if( entry->key.StartsWith("Space" )) break; - // These ones appear to be illegal and mess up accelerator processing. + // These ones appear to be illegal already and mess up accelerator processing. if( entry->key.StartsWith("NUMPAD_ENTER" )) break; if( entry->key.StartsWith("Backspace" )) break; if( entry->key.StartsWith("Delete" )) break;