You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've set up my views/application.js to the following:
importEmberfrom'ember';exportdefaultEmber.View.extend({acceptsKeyResponder: true,didInsertElement: function(){this.becomeKeyResponder(false);this._super.apply(this,arguments);}),willDestroyElement: function(){this.resignKeyResponder();this._super.apply(this,arguments);}),shiftSpace: function(){//opens modal, I've tweaked the MODIFIED_KEY_EVENTS hash to listen to key code 32}});
Once I open the modal and close it, the view no longer gets the shiftSpace action anymore despite my clicking everywhere to make sure it's in focus. Any suggestions on how to add key listeners to the ember app as a whole? I'm trying to implement Mac OSX Spotlight Search functionality within the app so I want it available no matter where you are in the app. Thanks!
The text was updated successfully, but these errors were encountered:
I've set up my
views/application.js
to the following:Once I open the modal and close it, the view no longer gets the
shiftSpace
action anymore despite my clicking everywhere to make sure it's in focus. Any suggestions on how to add key listeners to the ember app as a whole? I'm trying to implement Mac OSX Spotlight Search functionality within the app so I want it available no matter where you are in the app. Thanks!The text was updated successfully, but these errors were encountered: