Skip to content

Commit 0c25c84

Browse files
authored
Merge pull request #1499 from session-foundation/fix/qa-2109/mac_redo_key
fix: add support for mac redo key on the input box
2 parents b137d6a + 2d5bb1d commit 0c25c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/components/conversation/composition/CompositionInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ const UnstyledCompositionInput = forwardRef<CompositionInputRef, ContentEditable
694694
const _onKeyDown = useCallback(
695695
(e: KeyboardEvent<HTMLDivElement>) => {
696696
if (e.ctrlKey || e.metaKey) {
697-
if (e.key === 'y' || (e.key === 'Z' && e.shiftKey)) {
697+
if (e.key === 'y' || (e.shiftKey && (e.key === 'z' || e.key === 'Z'))) {
698698
// Ctrl+Y or Cmd+Y
699699
// Ctrl+Shift+Z or Cmd+Shift+Z
700700
e.preventDefault();

0 commit comments

Comments
 (0)