Merge pull request #3680 from t3chguy/t3chguy/escape_cancel_search_focus_composer

Cancel quicksearch on ESC
pull/3693/head
Matthew Hodgson 2017-04-21 01:27:04 +01:00 committed by GitHub
commit 9c27075175
1 changed files with 4 additions and 0 deletions

View File

@ -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) {