diff --git a/src/components/settings/RecordKeyInput.vue b/src/components/settings/RecordKeyInput.vue index 632beab..52296ce 100644 --- a/src/components/settings/RecordKeyInput.vue +++ b/src/components/settings/RecordKeyInput.vue @@ -55,7 +55,7 @@ keyCombo += "Alt-" } if (event.ctrlKey) { - keyCombo += "Control-" + keyCombo += "Ctrl-" } if (event.metaKey) { keyCombo += "Meta-" diff --git a/tests/custom-key-bindings.spec.js b/tests/custom-key-bindings.spec.js index 70ce3e7..dd2a8d3 100644 --- a/tests/custom-key-bindings.spec.js +++ b/tests/custom-key-bindings.spec.js @@ -25,7 +25,7 @@ test("add custom key binding", async ({page}) => { await page.locator(".p-autocomplete-list li.p-autocomplete-option.p-focus").click() await page.locator("css=.settings .tab-content.tab-keyboard-bindings .add-key-binding-dialog .save").click() await expect(page.locator("css=.settings .tab-content.tab-keyboard-bindings table tr.keybind-user")).toHaveCount(1) - expect((await heynotePage.getSettings()).keyBindings).toEqual([{key:"Control-Shift-h", command:"openLanguageSelector"}]) + expect((await heynotePage.getSettings()).keyBindings).toEqual([{key:"Ctrl-Shift-h", command:"openLanguageSelector"}]) await page.locator("css=.overlay .settings .dialog .bottom-bar .close").click() await page.locator("body").press("Control+Shift+H") await expect(page.locator("css=.language-selector .items > li.selected")).toBeVisible() @@ -44,7 +44,7 @@ test("delete custom key binding", async ({page}) => { await page.locator(".p-autocomplete-list li.p-autocomplete-option.p-focus").click() await page.locator("css=.settings .tab-content.tab-keyboard-bindings .add-key-binding-dialog .save").click() await expect(page.locator("css=.settings .tab-content.tab-keyboard-bindings table tr.keybind-user")).toHaveCount(1) - expect((await heynotePage.getSettings()).keyBindings).toEqual([{key:"Control-Shift-h", command:"openLanguageSelector"}]) + expect((await heynotePage.getSettings()).keyBindings).toEqual([{key:"Ctrl-Shift-h", command:"openLanguageSelector"}]) await page.locator("css=.overlay .settings .dialog .bottom-bar .close").click() await page.locator("body").press("Control+Shift+H") await expect(page.locator("css=.language-selector .items > li.selected")).toBeVisible()