bugfix: fix emulated keystrokes

This commit is contained in:
scgbckbone 2024-03-28 00:08:20 +01:00 committed by doc-hex
parent cae9340a5d
commit fd54ad7314
2 changed files with 3 additions and 2 deletions

View File

@ -116,3 +116,4 @@
- most other exports fit into a reasonable QR (large / lower rez).
- Tweak: Default idle timeout when on battery, was reduced to 10 minutes from 30.
- Tweak: Cursor movements wrap around if menu is longer than screen height.
- Bugfix: fixed `Type Passwords` a.k.a emulated keystrokes

View File

@ -974,10 +974,10 @@ class EmulatedKeyboard:
for i, ch in enumerate(keystroke_string, start=1):
cap = False
to_press = self.char_map.get(ch, None)
if ch is None:
if to_press is None:
cap = True
to_press = self.char_map.get(ch.lower(), None)
if ch is None:
if to_press is None:
# problem: we don't know how to type this char
to_press = 0x1B # X