mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-04 11:10:04 -04:00
FIX: Make sure we hide popup menu options on esc.
This commit is contained in:
parent
58b7f214b0
commit
a053caeda4
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue