fix(grid): restore copy current row Mod+D shortcut

This commit is contained in:
zipg authored and GitHub committed 2026-09-04 02:05:07 +08:00
1 parent 2a4f1a45a9
commit 232426ced2
5 files changed
+24 -20

No files matched your search

+2 -2
View File
@@ -392,8 +392,8 @@ test("matches Cmd+S for saving", () => {
assert.equal(isSaveShortcut({ key: "s", metaKey: true }), true);
});
test("leaves copy current row disabled by default while honoring custom shortcuts", () => {
assert.equal(isCopyCurrentRowShortcut({ key: "d", metaKey: true }), false);
test("matches copy current row Mod+D by default while honoring custom shortcuts", () => {
assert.equal(isCopyCurrentRowShortcut({ key: "d", metaKey: true }), true);
assert.equal(isCopyCurrentRowShortcut({ key: "d", altKey: true }, { copyCurrentRow: "Alt+D" }), true);
});
+2 -2
View File
@@ -412,8 +412,8 @@ test("defaults shortcut settings", () => {
assert.equal(settings.shortcuts.executeSql, "Mod+Enter");
assert.equal(settings.shortcuts.saveSql, "Mod+S");
assert.equal(settings.shortcuts.extendSelection, "Alt+W");
assert.equal(settings.shortcuts.editTableStructure, "Mod+D");
assert.equal(settings.shortcuts.copyCurrentRow, "");
assert.equal(settings.shortcuts.editTableStructure, "Mod+Shift+D");
assert.equal(settings.shortcuts.copyCurrentRow, "Mod+D");
assert.equal(settings.shortcuts.deleteCurrentRow, "Delete");
assert.equal(settings.shortcuts.goToFirstPage, "");
assert.equal(settings.shortcuts.goToPreviousPage, "");