From 5c24774170b25dd916c5bf212cc90cb1a552a51f Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 9 May 2024 13:03:05 +0200 Subject: [PATCH] fixed copy & paste commands --- packages/web/src/commands/stdCommands.ts | 8 ++++---- packages/web/src/tabs/QueryTab.svelte | 10 +++++----- packages/web/src/utility/contextMenu.ts | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/web/src/commands/stdCommands.ts b/packages/web/src/commands/stdCommands.ts index d774f1570..84360afce 100644 --- a/packages/web/src/commands/stdCommands.ts +++ b/packages/web/src/commands/stdCommands.ts @@ -646,12 +646,12 @@ export function registerFileCommands({ }); } - if(copyPaste) { + if (copyPaste) { registerCommand({ id: idPrefix + '.copy', category, name: 'Copy', - keyText: 'CtrlOrCommand+C', + disableHandleKeyText: 'CtrlOrCommand+C', testEnabled: () => getCurrentEditor() != null, onClick: () => getCurrentEditor().copy(), }); @@ -659,10 +659,10 @@ export function registerFileCommands({ id: idPrefix + '.paste', category, name: 'Paste', - keyText: 'CtrlOrCommand+V', + disableHandleKeyText: 'CtrlOrCommand+V', testEnabled: () => getCurrentEditor() != null, onClick: () => getCurrentEditor().paste(), - }) + }); } if (findReplace) { diff --git a/packages/web/src/tabs/QueryTab.svelte b/packages/web/src/tabs/QueryTab.svelte index 212f106d2..d24f0233e 100644 --- a/packages/web/src/tabs/QueryTab.svelte +++ b/packages/web/src/tabs/QueryTab.svelte @@ -1,6 +1,6 @@