diff --git a/public/chat_header_button.test.tsx b/public/chat_header_button.test.tsx index 5db80eda..7d4c80b7 100644 --- a/public/chat_header_button.test.tsx +++ b/public/chat_header_button.test.tsx @@ -136,7 +136,7 @@ describe('', () => { charCode: 27, }); expect(screen.getByLabelText('chat input')).not.toHaveFocus(); - expect(screen.getByTitle('press ⌘ + / to start typing')).toBeInTheDocument(); + expect(screen.getByTitle('press Ctrl + / to start typing')).toBeInTheDocument(); }); it('should focus on chat input when pressing global shortcut', () => { @@ -155,7 +155,7 @@ describe('', () => { key: '/', code: 'NumpadDivide', charCode: 111, - metaKey: true, + ctrlKey: true, }); expect(screen.getByLabelText('chat input')).toHaveFocus(); }); diff --git a/public/chat_header_button.tsx b/public/chat_header_button.tsx index c08c2e97..e4f83fbd 100644 --- a/public/chat_header_button.tsx +++ b/public/chat_header_button.tsx @@ -125,7 +125,7 @@ export const HeaderChatButton = (props: HeaderChatButtonProps) => { useEffect(() => { const onGlobalMouseUp = (e: KeyboardEvent) => { - if (e.metaKey && e.key === '/') { + if (e.ctrlKey && e.key === '/') { inputRef.current?.focus(); } }; @@ -170,11 +170,11 @@ export const HeaderChatButton = (props: HeaderChatButtonProps) => { ) : ( - ⌘ + / + Ctrl + / )}