From 6a175c703be25427f41e15900843d0f9b3f5cf06 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 10 Dec 2021 10:03:52 +0000 Subject: [PATCH] Restore Ctrl for some key combinations in the Hotkeys modal (#6036) GitOrigin-RevId: e4bba11c128d6b6405619b1c4346c286bf69a044 --- .../js/features/hotkeys-modal/components/hotkeys-modal.js | 8 ++++---- .../hotkeys-modal/components/hotkeys-modal.test.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js b/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js index 5cb76acccd..e567c5c5fe 100644 --- a/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js +++ b/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js @@ -96,11 +96,11 @@ export default function HotkeysModal({ @@ -154,7 +154,7 @@ export default function HotkeysModal({ diff --git a/services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal.test.js b/services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal.test.js index b7249da797..1e4053c484 100644 --- a/services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal.test.js +++ b/services/web/test/frontend/features/hotkeys-modal/components/hotkeys-modal.test.js @@ -55,7 +55,7 @@ describe('', function () { it('uses Cmd for macOS', function () { render() - expect(screen.getAllByText(/Cmd/)).to.have.length(16) - expect(screen.queryByText(/Ctrl/)).to.not.exist + expect(screen.getAllByText(/Cmd/)).to.have.length(12) + expect(screen.getAllByText(/Ctrl/)).to.have.length(4) }) })