mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Allow Esc key to close Cel Properties window
Resolves aseprite/aseprite#964.
This commit is contained in:
parent
755e621d34
commit
cf6cd534ef
@ -126,7 +126,9 @@ private:
|
||||
|
||||
case kKeyDownMessage:
|
||||
if (opacity()->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