Focus keyboard shortcut for edit message
This commit is contained in:
parent
923461755b
commit
e920db2148
1 changed files with 5 additions and 0 deletions
|
@ -270,6 +270,11 @@ export function useEditLastMessageSent(
|
|||
|
||||
const key = KeyboardLayout.lookup(ev);
|
||||
|
||||
const { shiftKey } = ev;
|
||||
if (shiftKey || isCtrlOrAlt(ev)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (key === 'ArrowUp') {
|
||||
const value = maybeEditMessage();
|
||||
if (value) {
|
||||
|
|
Loading…
Reference in a new issue