added emoji focus check to prevent triggering shortcuts (#1056)

This commit is contained in:
Thilo Billerbeck 2021-05-28 06:39:20 +02:00 committed by GitHub
parent 5ef1596d65
commit 6c7acf9a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,6 +430,7 @@ export default class App extends Component {
} else if (
e.target !== document.getElementById('message-input') &&
e.target !== document.getElementById('username-change-input') &&
e.target !== document.getElementsByClassName('emoji-picker__search')[0] &&
this.state.streamOnline
) {
switch (e.code) {