-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* CB-3332 refactor: data-viewer shortcuts move them to the plugin folder, make them IKeyBinding shape to use in transformKeys * CB-3332 refactor: change ctrl hotkey to mod * CB-3332 refactor: use new DATA_VIEWER_SHORTCUTS, don't replace backspace * CB-3332 refactor: remove redundant shortcuts, update naming * CB-3332 feat: introduce new shortcuts for rows managing In order to let mac users use shortcuts, Insert key was changed to KeyR * CB-3332 feat: move shift key to the beginning of all shortcuts --------- Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
- Loading branch information
1 parent
32e50c4
commit 2f80d1c
Showing
14 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/DATA_GRID_BINDINGS.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
import type { IKeyBinding } from '@cloudbeaver/core-view'; | ||
|
||
/* these consts are only used for the user interface in Shortcuts popup, actual bindings in DataGridTable.tsx */ | ||
export const KEY_BINDING_REVERT_INLINE_EDITOR_CHANGES: IKeyBinding = { | ||
id: 'data-viewer-revert-inline-editor-changes', | ||
keys: ['Escape'], | ||
}; | ||
|
||
export const KEY_BINDING_ADD_NEW_ROW: IKeyBinding = { | ||
id: 'data-viewer-add-new-row', | ||
keys: ['Alt+R'], | ||
}; | ||
|
||
export const KEY_BINDING_DUPLICATE_ROW: IKeyBinding = { | ||
id: 'data-viewer-duplicate-row', | ||
keys: ['Shift+Alt+R'], | ||
}; | ||
|
||
export const KEY_BINDING_DELETE_ROW: IKeyBinding = { | ||
id: 'data-viewer-delete-row', | ||
keys: ['Delete'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters