diff --git a/examples/common/entry/entry_osx.mm b/examples/common/entry/entry_osx.mm index b8560b5f2..89e7c4814 100644 --- a/examples/common/entry/entry_osx.mm +++ b/examples/common/entry/entry_osx.mm @@ -311,9 +311,6 @@ namespace entry else { enum { ShiftMask = Modifier::LeftShift|Modifier::RightShift }; - const bool nonShiftModifiers = (0 != (modifiers&(~ShiftMask) ) ); - const bool isCharPressed = (Key::Key0 <= key && key <= Key::KeyZ) || (Key::Esc <= key && key <= Key::Minus); - const bool isText = isCharPressed && !nonShiftModifiers; m_eventQueue.postCharEvent(s_defaultWindow, 1, pressedChar); m_eventQueue.postKeyEvent(s_defaultWindow, key, modifiers, true); return false;