diff options
Diffstat (limited to 'web/share/js/kvm/keyboard.js')
-rw-r--r-- | web/share/js/kvm/keyboard.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js index 4b30b2c6..7f4c4f84 100644 --- a/web/share/js/kvm/keyboard.js +++ b/web/share/js/kvm/keyboard.js @@ -89,7 +89,7 @@ export function Keyboard(__recordWsEvent) { }; self.emit = function(code, state) { - __keyboardHandler({code: code}, state); + __keypad.emitByCode(code, state); }; var __updateOnlineLeds = function() { @@ -126,9 +126,7 @@ export function Keyboard(__recordWsEvent) { if (event.preventDefault) { event.preventDefault(); } - if (!event.repeat) { - __keypad.emit(event.code, state); - } + __keypad.emitByKeyEvent(event, state); }; var __sendKey = function(code, state) { |