mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Listen for escape key anywhere in the inbox
This commit is contained in:
@@ -47,9 +47,9 @@
|
||||
}.bind(this));
|
||||
},
|
||||
events: {
|
||||
'keyup': 'keyup',
|
||||
'click .back button': 'hideCompose',
|
||||
'click .fab': 'showCompose',
|
||||
'keyup input.new-message': 'compose',
|
||||
'open .contact': 'openConversation'
|
||||
},
|
||||
openConversation: function(e, data) {
|
||||
@@ -69,7 +69,7 @@
|
||||
this.$fab.show();
|
||||
this.$back.hide();
|
||||
},
|
||||
compose: function(e) {
|
||||
keyup: function(e) {
|
||||
if (e.keyCode === 27) {
|
||||
this.hideCompose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user