From ab894d174d3bf2afba24dcd34d4b4d9028b9bdee Mon Sep 17 00:00:00 2001 From: scgbckbone Date: Mon, 22 Apr 2024 23:07:38 +0200 Subject: [PATCH] bugfix: allow send password keystrokes for capital letters --- releases/QChangeLog.md | 1 + shared/usb.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/releases/QChangeLog.md b/releases/QChangeLog.md index 1eab892a..336a19b1 100644 --- a/releases/QChangeLog.md +++ b/releases/QChangeLog.md @@ -36,6 +36,7 @@ - Bugfix: Handle ZeroSecretException for BIP39 passphrase calculation when on temporary seed without master secret. - Bugfix: Battery idle timeout also considers last progress bar update +- Bugfix: Allow `Send Password` (keystrokes) of capital letters of alphabet - Enhancement: Allow export of multisig XPUBs via BBQr - Enhancement: Import multisig via QR/BBQr - both legacy COLDCARD export and descriptors supported - Enhancement: Allow unlimited index for BIP-85 derivations. Needs to be enabled first in `Danger Zone` diff --git a/shared/usb.py b/shared/usb.py index 5a809825..2c3de23b 100644 --- a/shared/usb.py +++ b/shared/usb.py @@ -959,7 +959,8 @@ class EmulatedKeyboard: @classmethod def can_type(cls, s): # do we know how to type all the chars in "s" - return all(ch in cls.char_map for ch in s) + # .lower() has no effect on symbols, numbers, and escapes + return all(ch.lower() in cls.char_map for ch in s) async def send_keystrokes(self, keystroke_string): from glob import dis