Focus keyboard shortcut for edit message

This commit is contained in:
Josh Perez 2023-10-16 15:34:25 -04:00 committed by GitHub
parent 923461755b
commit e920db2148
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {