diff options
Diffstat (limited to 'web/share/js/keypad.js')
-rw-r--r-- | web/share/js/keypad.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/keypad.js b/web/share/js/keypad.js index 23ed0620..69e6dba9 100644 --- a/web/share/js/keypad.js +++ b/web/share/js/keypad.js @@ -45,8 +45,8 @@ export function Keypad(keys_parent, key_callback) { tools.setDefault(__merged, code, []); __merged[code].push(el_key); - tools.setOnDown(el_key, () => __clickHandler(el_key, true)); - tools.setOnUp(el_key, () => __clickHandler(el_key, false)); + tools.el.setOnDown(el_key, () => __clickHandler(el_key, true)); + tools.el.setOnUp(el_key, () => __clickHandler(el_key, false)); el_key.onmouseout = function() { if (__isPressed(el_key)) { __clickHandler(el_key, false); @@ -63,7 +63,7 @@ export function Keypad(keys_parent, key_callback) { tools.setDefault(__merged, code, []); __merged[code].push(el_key); - tools.setOnDown(el_key, () => __toggleModifierHandler(el_key)); + tools.el.setOnDown(el_key, () => __toggleModifierHandler(el_key)); } }; |