mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 00:46:01 +00:00
fixed copy & paste commands
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user