fix(DataTable): allow control c key for copy a table content. (#5757) (#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.
pull/5827/head
KumJungMin 2024-06-03 20:46:20 +09:00 committed by GitHub
parent fa57169cd2
commit 401dd22567
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -871,7 +871,9 @@ export default {
this.$emit('update:selection', data);
}
event.preventDefault();
const isCopyShortcut = event.code === 'KeyC' && metaKey;
if (!isCopyShortcut) event.preventDefault();
break;
}