Skip to content

feat(macOS): add UTF-8 keyboard text input - #98

Merged
ReenigneArcher merged 1 commit into
masterfrom
codex/macos-unicode-input
Aug 23, 2026
Merged

feat(macOS): add UTF-8 keyboard text input#98
ReenigneArcher merged 1 commit into
masterfrom
codex/macos-unicode-input

Conversation

@ReenigneArcher

@ReenigneArcherReenigneArcher commented Aug 20, 2026

Copy link
Copy Markdown
Member

Description

Implement KeyboardTextEvent handling in the macOS backend by converting UTF-8 text to UTF-16 and posting Unicode key-down/key-up CoreGraphics events with current modifier flags. Update platform support docs to mark keyboard text input as supported, and expand macOS backend tests/fixtures to cover successful text input, empty input, invalid UTF-8 rejection, and behavior after device close.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

See our AI usage policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov

codecovBot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 24.13793% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.33%. Comparing base (15a37d3) to head (f814c43).
✅ All tests successful. No failed tests found.

Files with missing linesPatch %Lines
src/platform/macos/macos_backend.cpp24.13%4 Missing and 18 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@## master #98 +/- ##
==========================================
- Coverage 75.47% 75.33% -0.14% 
==========================================
Files 34 34 Lines 8133 8161 +28 Branches 3044 3066 +22 ==========================================
+ Hits 6138 6148 +10 - Misses 1454 1718 +264 + Partials 541 295 -246 
FlagCoverage Δ
FreeBSD51.72% <ø> (ø)
Linux-Clang57.48% <ø> (ø)
Linux-GCC68.19% <ø> (ø)
Windows-MSVC88.42% <ø> (ø)
Windows-MinGW-UCRT6465.17% <ø> (ø)
macOS51.31% <24.13%> (-0.12%)⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing linesCoverage Δ
src/platform/macos/macos_backend.cpp41.23% <24.13%> (-0.59%)⬇️

... and 12 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15a37d3...f814c43. Read the comment docs.

Implement KeyboardTextEvent handling in the macOS backend by converting UTF-8 text to UTF-16 and posting Unicode key-down/key-up CoreGraphics events with current modifier flags. Update platform support docs to mark keyboard text input as supported, and expand macOS backend tests/fixtures to cover successful text input, empty input, invalid UTF-8 rejection, and behavior after device close.
@ReenigneArcher
ReenigneArcherforce-pushed the codex/macos-unicode-input branch from 0da072b to f814c43CompareAugust 20, 2026 22:20
@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher

Copy link
Copy Markdown
MemberAuthor

@mkrusen could I request that you give this a test with Sunshine? I'm only asking as I don't have any macOS device to test on.

@ReenigneArcher

Copy link
Copy Markdown
MemberAuthor

I can't test this as I have no macOS device, but going to assume it works. If not feel free to file a bug report.

@ReenigneArcher
ReenigneArcher merged commit 0fcb5d8 into masterAug 23, 2026
30 of 31 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/macos-unicode-input branch August 23, 2026 12:27
Sign up for freeto 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.

1 participant

@ReenigneArcher