Skip to content

Commit

Permalink
fix: ignore updating cell value on modifier key press
Browse files Browse the repository at this point in the history
re #692

Signed-off-by: Pranav C <pranavxc@gmail.com>
  • Loading branch information
pranavxc committed Nov 1, 2021
1 parent 0597531 commit a6e9d6d
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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)
Expand Down

0 comments on commit a6e9d6d

Please sign in to comment.