if hotkey is handled, return false

This commit is contained in:
Andrew Dolgov 2013-03-27 16:34:06 +04:00
parent 2e2f672e55
commit b6c2c963ad
1 changed files with 6 additions and 2 deletions

View File

@ -833,7 +833,11 @@ function hotkey_handler(e) {
} }
var action = hotkey_actions[hotkey_action]; var action = hotkey_actions[hotkey_action];
if(action != null) action();
if (action != null) {
action();
return false;
}
} catch (e) { } catch (e) {
exception_error("hotkey_handler", e); exception_error("hotkey_handler", e);