mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 01:35:49 +03:00
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:
parent
ddd12edc06
commit
52a119244b
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…
Reference in a new issue