mirror of https://github.com/vector-im/riot-web
Cancel quick-search on Escape, clearing it and returning focus to composer.
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/3680/head
parent
ddd12edc06
commit
52a119244b
|
@ -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 New Issue