From 77e3d7ca0cdd13dbef0865f987eba957c5de7cb2 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 29 Sep 2016 13:40:36 -0400 Subject: [PATCH] (js) Improve hotkeys support --- UI/WebServerResources/js/Common/sgHotkeys.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/Common/sgHotkeys.service.js b/UI/WebServerResources/js/Common/sgHotkeys.service.js index 7d3a31e68..45cde73a9 100644 --- a/UI/WebServerResources/js/Common/sgHotkeys.service.js +++ b/UI/WebServerResources/js/Common/sgHotkeys.service.js @@ -122,12 +122,12 @@ /** * Keybindings are ignored by default when coming from a form input field. */ - this._preventIn = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA']; + this._preventIn = ['INPUT', 'SELECT', 'TEXTAREA']; /** * Keybindings are ignored by default when coming from special elements */ - this._preventInClass = ['md-chip-content']; + this._preventInClass = ['md-focused', 'md-chip-content']; this._onKeydown = this._onKeydown.bind(this); this._onKeyup = this._onKeyup.bind(this);