diff --git a/atom/browser/ui/accelerator_util_mac.mm b/atom/browser/ui/accelerator_util_mac.mm index cf1d3de4d212..c10f4cb6ed4b 100644 --- a/atom/browser/ui/accelerator_util_mac.mm +++ b/atom/browser/ui/accelerator_util_mac.mm @@ -26,7 +26,13 @@ void SetPlatformAccelerator(ui::Accelerator* accelerator) { &characterIgnoringModifiers); if (character != characterIgnoringModifiers) { - modifiers ^= NSShiftKeyMask; + // 48 === '0', 57 === '9' + if (characterIgnoringModifiers >= 48 && characterIgnoringModifiers <= 57) { + // The character is a number so lets not mutate it with the modifiers + character = characterIgnoringModifiers; + } else { + modifiers ^= NSShiftKeyMask; + } } if (character == NSDeleteFunctionKey) {