From 3c5ff301774ac17cd88b72c094a8154158b562cc Mon Sep 17 00:00:00 2001 From: owi92 <94838646+owi92@users.noreply.github.com> Date: Thu, 29 Sep 2022 17:51:50 +0200 Subject: [PATCH] Fix quote shortcut for most keyboard layouts (#9298) --- src/accessibility/KeyboardShortcuts.ts | 1 + src/components/views/rooms/BasicMessageComposer.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/accessibility/KeyboardShortcuts.ts b/src/accessibility/KeyboardShortcuts.ts index 1a7f45404c..6ea8432622 100644 --- a/src/accessibility/KeyboardShortcuts.ts +++ b/src/accessibility/KeyboardShortcuts.ts @@ -339,6 +339,7 @@ export const KEYBOARD_SHORTCUTS: IKeyboardShortcuts = { [KeyBindingAction.FormatQuote]: { default: { ctrlOrCmdKey: true, + shiftKey: true, key: Key.GREATER_THAN, }, displayName: _td("Toggle Quote"), diff --git a/src/components/views/rooms/BasicMessageComposer.tsx b/src/components/views/rooms/BasicMessageComposer.tsx index b75e81aaed..d74c7b5148 100644 --- a/src/components/views/rooms/BasicMessageComposer.tsx +++ b/src/components/views/rooms/BasicMessageComposer.tsx @@ -754,7 +754,7 @@ export default class BasicMessageEditor extends React.Component [Formatting.Bold]: ctrlShortcutLabel("B"), [Formatting.Italics]: ctrlShortcutLabel("I"), [Formatting.Code]: ctrlShortcutLabel("E"), - [Formatting.Quote]: ctrlShortcutLabel(">"), + [Formatting.Quote]: ctrlShortcutLabel(">", true), [Formatting.InsertLink]: ctrlShortcutLabel("L", true), };