You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets up callbacks for given key combination and event. Note that there is little reaction delay that depends on what callbacks are set (when only `callback_on_press` is set calls callback on keydown, when `callback_on_longpress` or `callback_on_toolongpress` is set waits for the key release, when `callback_on_doublepress` is set waits for next keypress).
77
+
Sets up callbacks for given key combination. Note that there is little reaction delay that depends on what callbacks are set (
78
+
when only `callback_on_press` is set, the callback is called on keydown;
79
+
when `callback_on_longpress` or `callback_on_toolongpress` is set, it waits for the key release;
80
+
when `callback_on_doublepress` is set, waits for next keypress).
78
81
Calling this function for the second time with same key_list will remove the old callbacks.
79
82
To prevent blocking keypress detection, callbacks are always called as threads.
0 commit comments