diff --git a/examples/common/entry/entry_osx.mm b/examples/common/entry/entry_osx.mm index 72386512..17650e17 100644 --- a/examples/common/entry/entry_osx.mm +++ b/examples/common/entry/entry_osx.mm @@ -308,8 +308,8 @@ namespace entry { m_eventQueue.postExitEvent(); } - else if ( (Key::Key0 <= key && key <= Key::KeyZ) - || (Key::Esc <= key && key <= Key::Minus) ) + else if (0 != (modifiers & (Modifier::LeftShift|Modifier::RightShift) ) + && ( (Key::Key0 <= key && key <= Key::KeyZ) || (Key::Esc <= key && key <= Key::Minus) ) ) { m_eventQueue.postCharEvent(s_defaultWindow, 1, pressedChar); return false;