We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58420c8 commit 5895889Copy full SHA for 5895889
src/renderer/pages/Gallery.vue
@@ -178,8 +178,12 @@ export default class extends Vue {
178
document.addEventListener('keyup', this.handleDetectShiftKey)
179
}
180
handleDetectShiftKey (event: KeyboardEvent) {
181
- if (event.keyCode === 16) {
182
- this.isShiftKeyPress = !this.isShiftKeyPress
+ if (event.key === 'Shift') {
+ if (event.type === 'keydown') {
183
+ this.isShiftKeyPress = true
184
+ } else if (event.type === 'keyup') {
185
+ this.isShiftKeyPress = false
186
+ }
187
188
189
get filterList () {
0 commit comments