mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 00:07:49 +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]() {
|
button_shift.on_select = [this]() {
|
||||||
incr(shift_mode);
|
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;
|
shift_mode = ShiftMode::None;
|
||||||
|
|
||||||
refresh_keys();
|
refresh_keys();
|
||||||
|
@@ -104,7 +104,7 @@ class AlphanumView : public TextEntryView {
|
|||||||
"<DEL"};
|
"<DEL"};
|
||||||
|
|
||||||
Button button_mode{
|
Button button_mode{
|
||||||
{16 * 8, 32 * 8 - 3, 5 * 8, 3 * 16 + 3},
|
{16 * 8, 32 * 8 - 3, 6 * 8, 3 * 16 + 3},
|
||||||
""};
|
""};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -50,7 +50,7 @@ class TextEntryView : public View {
|
|||||||
|
|
||||||
TextEdit text_input;
|
TextEdit text_input;
|
||||||
Button button_ok{
|
Button button_ok{
|
||||||
{21 * 8, 32 * 8 - 3, 9 * 8, 3 * 16 + 3},
|
{22 * 8, 32 * 8 - 3, 8 * 8, 3 * 16 + 3},
|
||||||
"OK"};
|
"OK"};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user