mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 19:13:29 +00:00
Status bar should not eat Enter key when it isn't focused (fix #660)
This commit is contained in:
parent
a4db7ff0eb
commit
53e25770b1
@ -111,8 +111,9 @@ public:
|
||||
KeyMessage* keymsg = static_cast<KeyMessage*>(msg);
|
||||
KeyScancode scancode = keymsg->scancode();
|
||||
|
||||
if (scancode == kKeyEnter || // TODO customizable keys
|
||||
scancode == kKeyEnterPad) {
|
||||
if (hasFocus() &&
|
||||
(scancode == kKeyEnter || // TODO customizable keys
|
||||
scancode == kKeyEnterPad)) {
|
||||
Command* cmd = CommandsModule::instance()->getCommandByName(CommandId::GotoFrame);
|
||||
Params params;
|
||||
int frame = getTextInt();
|
||||
|
Loading…
x
Reference in New Issue
Block a user