Merge pull request #3445 from tylershuster/keyboard-navigation

chat: added ability to blur chat editor
This commit is contained in:
matildepark 2020-09-08 00:17:39 -04:00 committed by GitHub
commit 05adb18a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,9 @@ export default class ChatEditor extends Component {
extraKeys: {
'Enter': () => {
this.submit();
},
'Esc': () => {
this.editor?.getInputField().blur();
}
}
};