mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
If some key modifiers are pressed other than shift, send postKeyEvent().
This commit is contained in:
parent
7bc7b9f329
commit
81b9086de5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue