Prevent closing comment input field on ESC

This commit is contained in:
vladimir dashukevich
2018-06-06 00:17:42 +03:00
parent 154bee6a6e
commit 7f7c4df188
-5
View File
@@ -65,11 +65,6 @@ export default class Input extends Component {
if (e.keyCode === 13 && (e.metaKey || e.ctrlKey)) {
this.send();
}
// cancel on esc
if (e.keyCode === 27 && this.props.onCancel) {
this.props.onCancel();
}
}
onInput() {