Fix js error on capslock checking

This commit is contained in:
Bubka 2024-11-19 13:39:07 +01:00
parent 9c917ab1cc
commit 97059cbf8d

View File

@ -64,7 +64,9 @@
})
function checkCapsLock(event) {
hasCapsLockOn.value = event.getModifierState('CapsLock') ? true : false
if (typeof event.getModifierState === 'function') {
hasCapsLockOn.value = event.getModifierState('CapsLock') ? true : false
}
}
function setFieldType(event) {