Revert "Revert "Cancel quick-search on Escape, clearing it and returning focus to composer.""
This reverts commit fdf326c9f0
.
This commit is contained in:
parent
c5cf2132fb
commit
b34b6eceed
1 changed files with 4 additions and 0 deletions
|
@ -100,6 +100,10 @@ module.exports = React.createClass({
|
|||
}
|
||||
|
||||
switch (ev.keyCode) {
|
||||
case KeyCode.ESCAPE:
|
||||
this._clearSearch();
|
||||
dis.dispatch({action: 'focus_composer'});
|
||||
break;
|
||||
case KeyCode.KEY_K:
|
||||
if (ctrlCmdOnly) {
|
||||
if (this.refs.search) {
|
||||
|
|
Loading…
Add table
Reference in a new issue