Skip to content

chore: add changeset for keywrite/web#9

Merged
eyuelberga merged 1 commit intodevelopfrom
fix/keywrite-not-working-on-mobile
Dec 26, 2025
Merged

chore: add changeset for keywrite/web#9
eyuelberga merged 1 commit intodevelopfrom
fix/keywrite-not-working-on-mobile

Conversation

@eyuelberga
Copy link
Owner

Closes #7

📝 Description

Fixes inconsistent input behavior across environments by improving how keyboard input is handled in the web adapter.

This PR adds support for the beforeinput event when available, with a safe fallback to keydown for environments that do not support it. This improves compatibility with mobile browsers, IME input, and modern input methods while preserving existing behavior.


⛳️ Current behavior (updates)

  • Input handling relies solely on keydown events
  • Mobile browsers and IME-based input may not behave correctly
  • Behavior varies depending on browser support for low-level keyboard events

🚀 New behavior

  • Uses the beforeinput event when supported to handle text insertion
  • Automatically falls back to keydown in environments without beforeinput
  • Ensures consistent behavior across desktop, mobile, and testing environments
  • No changes to the public API

💣 Is this a breaking change (Yes/No):

No


📝 Additional Information

  • No new dependencies added
  • Existing behavior is preserved through fallback logic
  • Test coverage updated to validate both input paths

@eyuelberga eyuelberga force-pushed the fix/keywrite-not-working-on-mobile branch 4 times, most recently from 7646755 to 49bee89 Compare December 26, 2025 02:57
Switch to beforeinput-based input handling with a safe keydown fallback to improve cross-platform
compatibility.

#7
@eyuelberga eyuelberga force-pushed the fix/keywrite-not-working-on-mobile branch from 49bee89 to 7051586 Compare December 26, 2025 02:59
@eyuelberga eyuelberga merged commit c6d9277 into develop Dec 26, 2025
1 check passed
@eyuelberga eyuelberga deleted the fix/keywrite-not-working-on-mobile branch December 26, 2025 03:00
eyuelberga added a commit that referenced this pull request Dec 26, 2025
Switch to beforeinput-based input handling with a safe keydown fallback to improve cross-platform
compatibility.

#7
eyuelberga added a commit that referenced this pull request Dec 26, 2025
Switch to beforeinput-based input handling with a safe keydown fallback to improve cross-platform
compatibility.

#7
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.

1 participant