fix: stupid bug, remove keycode_flag

This commit is contained in:
Asura 2022-07-01 00:16:08 -07:00
parent 6772128dd9
commit 002f06a767

View File

@ -33,6 +33,7 @@ DEAD_KEYS = {
} }
def my_keyboard_mapping(display): def my_keyboard_mapping(display):
"""Generates a mapping from *keysyms* to *key codes* and required """Generates a mapping from *keysyms* to *key codes* and required
modifier shift states. modifier shift states.
@ -151,8 +152,8 @@ class MyController(Controller):
try: try:
with self.modifiers as modifiers: with self.modifiers as modifiers:
alt_gr = Key.alt_gr in modifiers alt_gr = Key.alt_gr in modifiers
# !!!: Send_event can't support lock screen, this condition cann't be modified
if alt_gr or keycode_flag: if alt_gr:
self.send_event( self.send_event(
event, keycode, shift_state) event, keycode, shift_state)
else: else: