Status bar should not eat Enter key when it isn't focused (fix #660)

This commit is contained in:
David Capello 2015-05-05 09:47:05 -03:00
parent a4db7ff0eb
commit 53e25770b1

View File

@ -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();