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