Attempt to go into keyboard echo for characters when capslock is on.

This commit is contained in:
Storm Dragon 2022-02-19 03:57:24 -05:00
parent 05e3b0b3f9
commit 22f214ae49

View File

@ -19,9 +19,11 @@ class command():
if self.env['input']['oldCapsLock'] == self.env['input']['newCapsLock']:
return
if self.env['input']['newCapsLock']:
self.env['runtime']['outputManager'].presentText(_("Capslock on"), interrupt=True)
oldKeyboardEcho = self.env['runtime']['outputManager'].presentText(_("Capslock on"), interrupt=True)
self.env['runtime']['settingsManager']('keyboard', 'charEcho') = True
else:
self.env['runtime']['outputManager'].presentText(_("Capslock off"), interrupt=True)
self.env['runtime']['settingsManager']('keyboard', 'charEcho') = oldKeyboardEcho
def setCallback(self, callback):
pass