fix(editor): Fix for wrong keycode when shift is pressed (#4898)

This commit is contained in:
Milorad FIlipović 2022-12-12 17:39:33 +01:00 committed by GitHub
parent 91e9a88e3a
commit 3fc2d7cc5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ export const historyHelper = mixins(debounceHelper, deviceSupportHelpers).extend
const currentNodeViewTab = getNodeViewTab(this.$route);
if (event.repeat || currentNodeViewTab !== MAIN_HEADER_TABS.WORKFLOW) return;
if (this.isCtrlKeyPressed(event) && event.key === 'z') {
if (this.isCtrlKeyPressed(event) && event.key.toLowerCase() === 'z') {
event.preventDefault();
if (!this.isNDVOpen) {
if (event.shiftKey) {