From 9d42ca24ad855977d8754a285510d2ec100597f1 Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Sat, 27 Jun 2026 01:54:54 -0400 Subject: [PATCH] Fix #2773: space key broken with KEYBOARD_LAYOUT_ES after tic_key_iso_extra removal Commit 1149e7cd removed tic_key_iso_extra from the enum, shifting tic_key_space from index 49 to 48. This fixed the non-ES layout (Symbols[48] was already ' '), but broke KEYBOARD_LAYOUT_ES where Symbols[48] was '<' (the old ISO extra key), Shift[48] was '>', and Alt[48] was one past the last useful character. Remove the '<' and '>' from positions 48 in the ES Symbols and Shift arrays so that tic_key_space (48) now correctly maps to ' '. Also update the US KEYS reference comment to no longer show the '<'. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/studio/studio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/studio/studio.c b/src/studio/studio.c index 38d195545..194c6ca7e 100644 --- a/src/studio/studio.c +++ b/src/studio/studio.c @@ -432,10 +432,10 @@ char getKeyboardText(Studio* studio) tic80_input* input = &tic->ram->input; #ifdef KEYBOARD_LAYOUT_ES - // US KEYS: " abcdefghijklmnopqrstuvwxyz0123456789-=[]\\;'`,./< "; - static const char Symbols[] = " abcdefghijklmnopqrstuvwxyz0123456789'!`+cn'o,.-< "; - static const char Shift[] = " ABCDEFGHIJKLMNOPQRSTUVWXYZ=!\" $%&/()??^*CN\"a;:_> "; - static const char Alt[] = " |@# []} {\\ "; + // US KEYS: " abcdefghijklmnopqrstuvwxyz0123456789-=[]\\;'`,./ "; + static const char Symbols[] = " abcdefghijklmnopqrstuvwxyz0123456789'!`+cn'o,.- "; + static const char Shift[] = " ABCDEFGHIJKLMNOPQRSTUVWXYZ=!\" $%&/()??^*CN\"a;:_ "; + static const char Alt[] = " |@# []} {\\ "; #else static const char Symbols[] = " abcdefghijklmnopqrstuvwxyz0123456789-=[]\\;'`,./ "; static const char Shift[] = " ABCDEFGHIJKLMNOPQRSTUVWXYZ)!@#$%^&*(_+{}|:\"~<>? ";