Cancel quick-search on Escape, clearing it and returning focus to composer.

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-04-21 01:21:25 +01:00
parent ddd12edc06
commit 52a119244b
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) {