add comment

This commit is contained in:
Chrys 2022-02-22 17:55:24 +01:00
parent 9a3778e25f
commit eaa86cb376

View File

@ -19,8 +19,10 @@ class command():
def run(self): def run(self):
# enabled? # enabled?
active = self.env['runtime']['settingsManager'].getSettingAsInt('keyboard', 'charEchoMode') active = self.env['runtime']['settingsManager'].getSettingAsInt('keyboard', 'charEchoMode')
# 0 = off
if active == 0: if active == 0:
return return
# 2 = caps only
if active == 2: if active == 2:
if not self.env['input']['newCapsLock']: if not self.env['input']['newCapsLock']:
return return