summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/keyboard.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-24 08:58:14 +0300
committerDevaev Maxim <[email protected]>2021-05-24 08:58:14 +0300
commitdb192b0769f3b9e8f6940eb463a2294130bced94 (patch)
tree2bd1cb5fdc109e376e8863253c2c8ed01faa688b /web/share/js/kvm/keyboard.js
parent580d7c118260b349eb0c6347a4c0247791eb92a3 (diff)
refactoring
Diffstat (limited to 'web/share/js/kvm/keyboard.js')
-rw-r--r--web/share/js/kvm/keyboard.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js
index 1ec6b492..7c632d40 100644
--- a/web/share/js/kvm/keyboard.js
+++ b/web/share/js/kvm/keyboard.js
@@ -24,13 +24,11 @@ import {tools, $, $$$} from "../tools.js";
import {Keypad} from "../keypad.js";
-export function Keyboard(record_callback) {
+export function Keyboard(__recordWsEvent) {
var self = this;
/************************************************************************/
- var __record_callback = record_callback;
-
var __ws = null;
var __online = true;
@@ -152,7 +150,7 @@ export function Keyboard(record_callback) {
if (__ws && !$("hid-mute-switch").checked) {
__ws.send(JSON.stringify(event));
}
- __record_callback(event);
+ __recordWsEvent(event);
};
__init__();