Skip to content

Commit

Permalink
fix(VDataIterator): check shiftKey on any keypress
Browse files Browse the repository at this point in the history
fixes #16128
  • Loading branch information
KaelWD committed Mar 22, 2023
1 parent e463279 commit 8ad6f7b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ export default mixins(

methods: {
onKeyDown (e: KeyboardEvent): void {
if (e.keyCode !== keyCodes.shift) return
this.shiftKeyDown = true
this.shiftKeyDown = e.keyCode === keyCodes.shift || e.shiftKey
},
onKeyUp (e: KeyboardEvent): void {
if (e.keyCode !== keyCodes.shift) return
this.shiftKeyDown = false
if (e.keyCode === keyCodes.shift || !e.shiftKey) {
this.shiftKeyDown = false
}
},
toggleSelectAll (value: boolean): void {
const selection = Object.assign({}, this.selection)
Expand Down

0 comments on commit 8ad6f7b

Please sign in to comment.