mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Allow Esc key to close Layer Properties window
This commit is contained in:
parent
cf6cd534ef
commit
2d0dcc8613
@ -139,7 +139,9 @@ private:
|
||||
if (name()->hasFocus() ||
|
||||
opacity()->hasFocus() ||
|
||||
mode()->hasFocus()) {
|
||||
if (static_cast<KeyMessage*>(msg)->scancode() == kKeyEnter) {
|
||||
KeyScancode scancode = static_cast<KeyMessage*>(msg)->scancode();
|
||||
if (scancode == kKeyEnter ||
|
||||
scancode == kKeyEsc) {
|
||||
onCommitChange();
|
||||
closeWindow(this);
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user