Skip to content

Enhance keymap definitions and improve E2E test reliability#105

Merged
chrisgleissner merged 7 commits into
mainfrom
fix/keymaps
Mar 17, 2026
Merged

Enhance keymap definitions and improve E2E test reliability#105
chrisgleissner merged 7 commits into
mainfrom
fix/keymaps

Conversation

@chrisgleissner

Copy link
Copy Markdown
Owner
  • Updated positional US keymap with additional shifted punctuation mappings.
  • Modified symbolic DE, FR, IT, NL, and UK keymaps to correct character mappings.
  • Added new function to check for visible text in key event handling.
  • Improved E2E test steps with retry logic and detailed logging for failures.

- Updated positional US keymap with additional shifted punctuation mappings.
- Modified symbolic DE, FR, IT, NL, and UK keymaps to correct character mappings.
- Added new function to check for visible text in key event handling.
- Improved E2E test steps with retry logic and detailed logging for failures.
Copilot AI review requested due to automatic review settings March 17, 2026 07:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enhances keyboard input handling and keymap coverage (including locale-specific characters) while improving CI E2E stability by retrying flaky runs.

Changes:

  • Expanded key translation to preserve “visible” (non-control) text even when it’s not a single ASCII printable character.
  • Updated positional US and symbolic DE/FR/IT/NL/UK keymaps (and corresponding tests) to correct/extend PETSCII mappings.
  • Wrapped E2E workflow steps with retry logic and improved step-summary reporting.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/script/test_interact_key.c Adds test cases for UTF-8 visible text translation and additional PETSCII expectations.
src/c64-interact-key.c Introduces has_visible_text() and uses it to preserve non-control text in translated key events.
data/keymaps/positional_us.c64keymap.ini Adds additional shifted punctuation/control mappings (e.g., Shift+Minus/Equal/etc.).
data/keymaps/symbolic_de.c64keymap.ini Corrects German locale character mappings and adds uppercase variants.
data/keymaps/symbolic_fr.c64keymap.ini Adds uppercase accented mappings and removes redundant Shift+4 entry.
data/keymaps/symbolic_it.c64keymap.ini Adds uppercase accented mappings and removes redundant Shift+4 entry.
data/keymaps/symbolic_nl.c64keymap.ini Removes redundant Shift+4 entry.
data/keymaps/symbolic_uk.c64keymap.ini Removes redundant Shift+4 entry.
.github/workflows/build-project.yaml Replaces inline E2E shell runs with nick-fields/retry@v3 and adds richer step summary output.

Comment thread src/c64-interact-key.c Outdated
Comment thread .github/workflows/build-project.yaml Outdated
Comment thread .github/workflows/build-project.yaml Outdated
chrisgleissner and others added 6 commits March 17, 2026 09:19
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ier key behavior

- Enhanced `c64_key_click` function to correctly identify printable UTF-8 characters, ensuring multi-byte characters are handled appropriately.
- Adjusted modifier key logic to differentiate between Alt and AltGr, preventing incorrect CBM modifier bit setting when AltGr is detected.
- Added regression tests for UTF-8 character handling and ensured all necessary PETSCII codes are reachable through keymaps.
- Consolidated keymap audit findings into a comprehensive document, addressing various issues related to key mappings across different locales and ensuring compliance with user accessibility standards.
@chrisgleissner chrisgleissner merged commit 0f9d85b into main Mar 17, 2026
12 checks passed
@chrisgleissner chrisgleissner deleted the fix/keymaps branch March 17, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants