mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-17 02:25:11 +00:00
Merge pull request #3680 from t3chguy/t3chguy/escape_cancel_search_focus_composer
Cancel quicksearch on ESC
This commit is contained in:
commit
9c27075175
1 changed files with 4 additions and 0 deletions
|
@ -100,6 +100,10 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ev.keyCode) {
|
switch (ev.keyCode) {
|
||||||
|
case KeyCode.ESCAPE:
|
||||||
|
this._clearSearch();
|
||||||
|
dis.dispatch({action: 'focus_composer'});
|
||||||
|
break;
|
||||||
case KeyCode.KEY_K:
|
case KeyCode.KEY_K:
|
||||||
if (ctrlCmdOnly) {
|
if (ctrlCmdOnly) {
|
||||||
if (this.refs.search) {
|
if (this.refs.search) {
|
||||||
|
|
Loading…
Reference in a new issue