From 22f214ae490611b01aa82c341677d16ddb79af04 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 19 Feb 2022 03:57:24 -0500 Subject: [PATCH] Attempt to go into keyboard echo for characters when capslock is on. --- src/fenrirscreenreader/commands/onKeyInput/80000-capslock.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/commands/onKeyInput/80000-capslock.py b/src/fenrirscreenreader/commands/onKeyInput/80000-capslock.py index 10db97e1..7d5723b6 100644 --- a/src/fenrirscreenreader/commands/onKeyInput/80000-capslock.py +++ b/src/fenrirscreenreader/commands/onKeyInput/80000-capslock.py @@ -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