diff options
author | Maxim Devaev <[email protected]> | 2021-07-29 02:11:44 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-07-29 02:11:44 +0300 |
commit | 02335734ceafa25c660110e1f8059ff60bcb6d84 (patch) | |
tree | 69e07e3031ae365fb2a509554f8a411a5d44d607 /web/share/js/keypad.js | |
parent | 33c34bd4efbb675ec0c700454c655575cffe26e9 (diff) |
refactoring
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)); } }; |