forked from Mirrors/gomuks
web/roomview: don't focus input when copying text
This commit is contained in:
parent
e22e72b335
commit
ca6736f892
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ const RoomHeader = ({ room }: RoomViewProps) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const onKeyDownRoomView = (evt: React.KeyboardEvent) => {
|
const onKeyDownRoomView = (evt: React.KeyboardEvent) => {
|
||||||
if (evt.target === evt.currentTarget) {
|
if (evt.target === evt.currentTarget && !evt.ctrlKey && !evt.altKey) {
|
||||||
document.getElementById("message-composer")?.focus()
|
document.getElementById("message-composer")?.focus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue