mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 03:47:07 -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();
|
m_eventQueue.postExitEvent();
|
||||||
}
|
}
|
||||||
else if ( (Key::Key0 <= key && key <= Key::KeyZ)
|
else if (0 != (modifiers & (Modifier::LeftShift|Modifier::RightShift) )
|
||||||
|| (Key::Esc <= key && key <= Key::Minus) )
|
&& ( (Key::Key0 <= key && key <= Key::KeyZ) || (Key::Esc <= key && key <= Key::Minus) ) )
|
||||||
{
|
{
|
||||||
m_eventQueue.postCharEvent(s_defaultWindow, 1, pressedChar);
|
m_eventQueue.postCharEvent(s_defaultWindow, 1, pressedChar);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue