SYM+SHIFT => CAPS nicely

This commit is contained in:
Peter D. Gray 2024-04-25 11:12:18 -04:00
parent f007f169b7
commit fb08b21d83
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C
2 changed files with 13 additions and 7 deletions

View File

@ -40,13 +40,14 @@ This lists the changes in the most recent firmware, for each hardware platform.
## 1.2.0Q - 2024-05-0X
- Enhancement: Allow export of multisig XPUBs via BBQr
- Enhancement: Import multisig via QR/BBQr - both legacy COLDCARD export and descriptors supported
- Enhancement: Status bar text sharper now.
- 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: Status bar text sharper now.
- Bugfix: Pressing SYM+SHIFT was toggling CAPS continuously. Now toggles once only.
# Release History

View File

@ -160,9 +160,6 @@ class FullKeyboard(NumpadBase):
for kn in new_presses:
#assert self.is_pressed[kn]:
if kn == KEYNUM_SHIFT:
if symbol_down:
self.caps_lock = not self.caps_lock
status_chg['caps'] = int(self.caps_lock)
continue
elif kn == KEYNUM_SYMBOL:
continue
@ -194,13 +191,21 @@ class FullKeyboard(NumpadBase):
from glob import SCAN
SCAN.torch_control_sync(False)
# state change detect for SYM, SHIFT
meta_chg = False
if self.shift_down != shift_down:
self.shift_down = shift_down
status_chg['shift'] = int(self.shift_down)
meta_chg = True
if self.symbol_down != symbol_down:
self.symbol_down = symbol_down
status_chg['symbol'] = int(self.symbol_down)
meta_chg = True
if meta_chg and symbol_down and shift_down:
# press SYM+SHIFT to toggle CAPS
self.caps_lock = not self.caps_lock
status_chg['caps'] = int(self.caps_lock)
if status_chg:
from glob import dis