fix: ignore updating cell value on modifier key press

re #692

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2021-11-01 14:54:44 +05:30
parent 05975313fe
commit a6e9d6dbae

View File

@@ -443,6 +443,11 @@ export default {
if (this.editEnabled.col != null && this.editEnabled.row != null) {
return
}
if (e.ctrlKey ||
e.altKey ||
e.shiftKey ||
e.metaKey) { return }
if (e.key && e.key.length === 1) {
if (!this.isPkAvail && !this.data[this.selected.row].rowMeta.new) {
return this.$toast.info('Update not allowed for table which doesn\'t have primary Key').goAway(3000)