Skip to content

Commit

Permalink
Fixed option press_key_when_is_done_untouch for numlock key presses
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Jan 30, 2023
1 parent 11e1703 commit b71c03c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion asus_touchpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,9 @@ def pressed_numlock_key(value):
abs_mt_slot_numpad_key[abs_mt_slot_value] = EV_KEY.KEY_NUMLOCK
elif press_key_when_is_done_untouch == 1 and takes_numlock_longer_then_set_up_activation_time():
log.info("Un-touched numlock key (not top_right_icon) in time: %s", time())

numlock_touch_start_time = 0

local_numlock_pressed()


Expand All @@ -991,9 +994,13 @@ def pressed_touchpad_top_right_icon(value):
log.info("Touched top_right_icon (numlock) in time: %s", time())
abs_mt_slot_numpad_key[abs_mt_slot_value] = EV_KEY.KEY_NUMLOCK
elif press_key_when_is_done_untouch == 1 and takes_numlock_longer_then_set_up_activation_time():
local_numlock_pressed()
log.info("Un-touched top_right_icon (numlock) in time: %s", time())

top_right_icon_touch_start_time = 0
numlock_touch_start_time = 0

local_numlock_pressed()


def is_slided_from_top_right_icon(e):
global top_right_icon_touch_start_time, abs_mt_slot_numpad_key, abs_mt_slot_x_values, abs_mt_slot_y_values, numlock_touch_start_time
Expand Down

0 comments on commit b71c03c

Please sign in to comment.