If some key modifiers are pressed other than shift, send postKeyEvent().

This commit is contained in:
Dario Manesku 2015-03-08 01:03:51 +01:00
parent 7bc7b9f329
commit 81b9086de5

View file

@ -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;