diff options
Diffstat (limited to 'web/share/js/kvm/keyboard.js')
-rw-r--r-- | web/share/js/kvm/keyboard.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js index 7f4c4f84..aff2b700 100644 --- a/web/share/js/kvm/keyboard.js +++ b/web/share/js/kvm/keyboard.js @@ -123,9 +123,7 @@ export function Keyboard(__recordWsEvent) { }; var __keyboardHandler = function(event, state) { - if (event.preventDefault) { - event.preventDefault(); - } + event.preventDefault(); __keypad.emitByKeyEvent(event, state); }; |