mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02:00
Restore Ctrl for some key combinations in the Hotkeys modal (#6036)
GitOrigin-RevId: e4bba11c128d6b6405619b1c4346c286bf69a044
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user