(js) Improve hotkeys support

This commit is contained in:
Francis Lachapelle 2016-09-29 13:40:36 -04:00
parent c80ee886b3
commit 77e3d7ca0c

View file

@ -122,12 +122,12 @@
/** /**
* Keybindings are ignored by default when coming from a form input field. * 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 * 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._onKeydown = this._onKeydown.bind(this);
this._onKeyup = this._onKeyup.bind(this); this._onKeyup = this._onKeyup.bind(this);