mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-30 10:51:13 +02:00
DRY the code a little bit in anticipation of #813
which sends a `focus_composer` onCancelClick() Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
64112da25c
commit
589d41e3b9
@ -81,7 +81,6 @@ module.exports = React.createClass({
|
|||||||
switch (ev.keyCode) {
|
switch (ev.keyCode) {
|
||||||
case KeyCode.ESCAPE:
|
case KeyCode.ESCAPE:
|
||||||
this.props.onCancelClick();
|
this.props.onCancelClick();
|
||||||
dis.dispatch({action: 'focus_composer'});
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user