mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 09:07:29 +00:00
Keyboard tweaks (#1338)
* Disallow 1-time shift in digits/symbols mode * Slightly wider "123" button and smaller OK button * Slightly wider "123" button and smaller OK button
This commit is contained in:
@@ -53,7 +53,10 @@ AlphanumView::AlphanumView(
|
||||
button_shift.on_select = [this]() {
|
||||
incr(shift_mode);
|
||||
|
||||
if (shift_mode > ShiftMode::ShiftLock)
|
||||
// Disallow one-time shift in digits/symbols mode
|
||||
if ((mode == 1) && (shift_mode == ShiftMode::Shift))
|
||||
shift_mode = ShiftMode::ShiftLock;
|
||||
else if (shift_mode > ShiftMode::ShiftLock)
|
||||
shift_mode = ShiftMode::None;
|
||||
|
||||
refresh_keys();
|
||||
|
Reference in New Issue
Block a user