Skip to content

Commit

Permalink
feat: implement quick key Ctrl+D to duplicate the current row in tabl…
Browse files Browse the repository at this point in the history
…e mode
  • Loading branch information
josdejong committed Nov 8, 2024
1 parent 001b590 commit deef105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/lib/components/modes/tablemode/TableMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1210,8 +1210,7 @@
if (combo === 'Ctrl+D') {
event.preventDefault()
// handleDuplicate()
// TODO: implement duplicate
handleDuplicateRow()
}
if (combo === 'Delete' || combo === 'Backspace') {
event.preventDefault()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default function ({
onClick: () => onDuplicateRow(),
icon: faClone,
text: 'Duplicate row',
title: 'Duplicate the current row',
title: 'Duplicate the current row (Ctrl+D)',
disabled: readOnly || !hasSelection || !hasJson
},
{
Expand Down

0 comments on commit deef105

Please sign in to comment.