From cf6cd534ef048e2cd27a97d39063d542915846b1 Mon Sep 17 00:00:00 2001 From: Keith Whitney Date: Sun, 23 Oct 2016 17:46:21 -0400 Subject: [PATCH] Allow Esc key to close Cel Properties window Resolves aseprite/aseprite#964. --- src/app/commands/cmd_cel_properties.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/commands/cmd_cel_properties.cpp b/src/app/commands/cmd_cel_properties.cpp index 8aa440c38..f65e56075 100644 --- a/src/app/commands/cmd_cel_properties.cpp +++ b/src/app/commands/cmd_cel_properties.cpp @@ -126,7 +126,9 @@ private: case kKeyDownMessage: if (opacity()->hasFocus()) { - if (static_cast(msg)->scancode() == kKeyEnter) { + KeyScancode scancode = static_cast(msg)->scancode(); + if (scancode == kKeyEnter || + scancode == kKeyEsc) { onCommitChange(); closeWindow(this); return true;