DRY the code a little bit in anticipation of #813

which sends a `focus_composer` onCancelClick()

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2017-04-21 18:50:29 +01:00
parent 64112da25c
commit 589d41e3b9
1 changed files with 0 additions and 1 deletions

View File

@ -81,7 +81,6 @@ module.exports = React.createClass({
switch (ev.keyCode) {
case KeyCode.ESCAPE:
this.props.onCancelClick();
dis.dispatch({action: 'focus_composer'});
break;
}
},