mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
web/roomview: focus input on ctrl+v
This commit is contained in:
parent
ff690e50af
commit
bd52d758b9
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ const RoomHeader = ({ room }: RoomViewProps) => {
|
|||
}
|
||||
|
||||
const onKeyDownRoomView = (evt: React.KeyboardEvent) => {
|
||||
if (evt.target === evt.currentTarget && !evt.ctrlKey && !evt.altKey) {
|
||||
if (evt.target === evt.currentTarget && (!evt.ctrlKey || evt.key === "v") && !evt.altKey) {
|
||||
document.getElementById("message-composer")?.focus()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue