mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 00:23:48 +00:00
Fix problem pressing some keyboard shortcuts in popup windows.
With this change we fix problems copying & pasting values in ColorSelector text entries.
This commit is contained in:
parent
0b19612860
commit
d752d19742
@ -98,11 +98,17 @@ bool PopupFrame::onProcessMessage(Message* msg)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case JM_KEYPRESSED:
|
case JM_KEYPRESSED:
|
||||||
if (m_filtering &&
|
if (m_filtering) {
|
||||||
(msg->key.scancode == KEY_ESC ||
|
if (msg->key.scancode == KEY_ESC ||
|
||||||
msg->key.scancode == KEY_ENTER ||
|
msg->key.scancode == KEY_ENTER ||
|
||||||
msg->key.scancode == KEY_ENTER_PAD)) {
|
msg->key.scancode == KEY_ENTER_PAD) {
|
||||||
closeWindow(NULL);
|
closeWindow(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
// If we are filtering messages we don't propagate key-events
|
||||||
|
// to other widgets. As we're a popup frame and we're
|
||||||
|
// filtering messages, the user shouldn't be able to start
|
||||||
|
// other actions pressing keyboard shortcuts.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user