Focus keyboard shortcut for edit message

Co-authored-by: Josh Perez <josh.p@signal.org>
This commit is contained in:
automated-signal
2023-10-18 11:35:27 -07:00
committed by GitHub
parent bda5a9c0be
commit 29e6884671

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