mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 23:42:57 +00:00
Avoid sending keys to gui manager when a popup frame is visible.
This commit is contained in:
parent
fd7e95035b
commit
2ac1d38d62
@ -100,9 +100,13 @@ bool PopupFrame::onProcessMessage(JMessage msg)
|
||||
break;
|
||||
|
||||
case JM_KEYPRESSED:
|
||||
if (m_filtering && msg->key.scancode < KEY_MODIFIERS)
|
||||
if (m_filtering &&
|
||||
(msg->key.scancode == KEY_ESC ||
|
||||
msg->key.scancode == KEY_ENTER ||
|
||||
msg->key.scancode == KEY_ENTER_PAD)) {
|
||||
closeWindow(NULL);
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
||||
case JM_BUTTONPRESSED:
|
||||
/* if the user click outside the window, we have to close the
|
||||
|
Loading…
x
Reference in New Issue
Block a user