File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22from dataclasses import dataclass
33from time import sleep
44import inject
5- from keyboard import press_and_release as hotkey
5+ from keyboard import press_and_release as hotkey , call_later
66from winregal import RegKey
77from os import system
88from commented_config import CommentsHolder
@@ -55,9 +55,7 @@ def set_active(value):
5555
5656
5757def toggle ():
58- hotkey ("ctrl+win" , do_release = False )
59- hotkey (46 )
60- hotkey ("ctrl+win" , do_press = False )
58+ hotkey (('ctrl' , 'win' , 46 ))
6159
6260
6361@inject .autoparams ()
Original file line number Diff line number Diff line change @@ -711,8 +711,9 @@ def update_info(self,
711711 winfo = self .name_to_winfo_map [values [event ][0 ]]
712712 self .selected_window = winfo
713713 for field , value in utils .public_fields (winfo ):
714- input_id = self .property_to_id_map [field ]
715- window [input_id ].update (str (value ))
714+ input_id = self .property_to_id_map .get (field )
715+ if input_id is not None :
716+ window [input_id ].update (str (value ))
716717
717718 def init_window (self , ** kwargs ):
718719 super ().init_window (
You can’t perform that action at this time.
0 commit comments