fix getModifierState is not a function error

pull/17920/head
Sinan997 2 years ago
parent f20686aa65
commit bcfbb53067

@ -21,7 +21,7 @@ export class TrackCapsLockDirective {
if (
(s.toUpperCase() === s && s.toLowerCase() !== s && e.shiftKey) ||
(s.toUpperCase() !== s && s.toLowerCase() === s && e.shiftKey) ||
e.getModifierState('CapsLock')
(e.getModifierState && e.getModifierState('CapsLock'))
) {
return true;
}

Loading…
Cancel
Save