Skip to content

Implement keyboard and text input via WPE Platform API#220

Open
felipeerias wants to merge 5 commits intomainfrom
felipeerias/input-keyboard
Open

Implement keyboard and text input via WPE Platform API#220
felipeerias wants to merge 5 commits intomainfrom
felipeerias/input-keyboard

Conversation

@felipeerias
Copy link
Copy Markdown
Collaborator

Add keyboard support for web content using WPE's input method context:

  • AndroidKeyMap.h: Maps Android keycodes to XKB keysyms
  • WPEInputConnection: Android InputConnection for soft keyboard
  • Support for text composition, deletion, and hardware key events

The input method context integrates with WPE's focus tracking to show/hide the on-screen keyboard when input fields gain or lose focus.

@felipeerias felipeerias force-pushed the felipeerias/input-keyboard branch from 336794e to 51ab4b7 Compare January 5, 2026 06:05
@felipeerias
Copy link
Copy Markdown
Collaborator Author

This PR builds on top of #219

In clang-tidy rules, change WarningsAsErrors to warnings only.
Preserve Cerbero build folder during gradle clean.
Replace the legacy wpe-android view-backend with the new WPE Platform API,
providing a cleaner integration with WebKit's rendering pipeline.

New implementations:
- WPEDisplayAndroid: Android-specific WPEDisplay
- WPEToplevelAndroid: Window/toplevel management
- WPEViewAndroid: View with buffer handling via AHardwareBuffer
- WPEInputMethodContextAndroid: Input method context

Key changes:
- RendererSurfaceControl uses WPEBuffer directly instead of WPEAndroidBuffer
- Connect fundamental WebKit signals for navigation, loading, and UI
@felipeerias felipeerias force-pushed the felipeerias/input-keyboard branch from 51ab4b7 to 6f73c9d Compare January 16, 2026 11:49
Add full keyboard support for web content using WPE's input method context:

- AndroidKeyMap.h: Maps Android keycodes to XKB keysyms
- WPEInputConnection: Android InputConnection for soft keyboard
- Support for text composition, deletion, and hardware key events

The input method context integrates with WPE's focus tracking to
show/hide the soft keyboard when input fields gain or lose focus.
@felipeerias felipeerias force-pushed the felipeerias/input-keyboard branch from 6f73c9d to 6ac5669 Compare January 21, 2026 08:08
@alexgcastro
Copy link
Copy Markdown
Collaborator

This change will depend on #230 so it needs to wait for it to land.

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