fix(grid): restore copy current row Mod+D shortcut
This commit is contained in:
5 files changed
+24
-20
No files matched your search
+2
-2
@@ -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
@@ -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, "");
|
||||
|
||||
Reference in new issue
Block a user