Skip to content

Commit

Permalink
fix(DataTable): allow control c key for copy a table content. (#5757) (
Browse files Browse the repository at this point in the history
…#5759)

* fix: allow control c key

* fix: prevent all text select when MultipleSelectionMode

* fix: prevent text all select when select mode

* fix: blocks event only it is not copy shortcut.
  • Loading branch information
KumJungMin authored Jun 3, 2024
1 parent fa57169 commit 401dd22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/lib/datatable/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,9 @@ export default {
this.$emit('update:selection', data);
}
event.preventDefault();
const isCopyShortcut = event.code === 'KeyC' && metaKey;
if (!isCopyShortcut) event.preventDefault();
break;
}
Expand Down

0 comments on commit 401dd22

Please sign in to comment.