Restore Ctrl for some key combinations in the Hotkeys modal (#6036)

GitOrigin-RevId: e4bba11c128d6b6405619b1c4346c286bf69a044
This commit is contained in:
Alf Eaton 2021-12-10 10:03:52 +00:00 committed by Copybot
parent e48d9fe4f9
commit 6a175c703b
2 changed files with 6 additions and 6 deletions

View file

@ -96,11 +96,11 @@ export default function HotkeysModal({
<Col xs={4}>
<Hotkey
combination={`${ctrl} + U`}
combination="Ctrl + U"
description={t('hotkey_to_uppercase')}
/>
<Hotkey
combination={`${ctrl} + Shift + U`}
combination="Ctrl + Shift + U"
description={t('hotkey_to_lowercase')}
/>
<Hotkey
@ -126,7 +126,7 @@ export default function HotkeysModal({
<Row>
<Col xs={4}>
<Hotkey
combination={`${ctrl} + Space`}
combination="Ctrl + Space"
description={t('hotkey_autocomplete_menu')}
/>
</Col>
@ -154,7 +154,7 @@ export default function HotkeysModal({
<Row>
<Col xs={4}>
<Hotkey
combination={`${ctrl} + Space `}
combination={`Ctrl + Space `}
description={t('hotkey_search_references')}
/>
</Col>

View file

@ -55,7 +55,7 @@ describe('<HotkeysModal />', function () {
it('uses Cmd for macOS', function () {
render(<HotkeysModal {...modalProps} isMac />)
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)
})
})