FIX: Make sure we hide popup menu options on esc.

This commit is contained in:
Guo Xiang Tan 2016-06-20 10:11:42 +08:00
parent 58b7f214b0
commit a053caeda4
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72

View File

@ -71,6 +71,7 @@ const ComposerView = Ember.View.extend({
keyDown(e) {
if (e.which === 27) {
this.get('controller').send('hitEsc');
this.get('controller').send('hideOptions');
return false;
} else if (e.which === 13 && (e.ctrlKey || e.metaKey)) {
// CTRL+ENTER or CMD+ENTER