-
Notifications
You must be signed in to change notification settings - Fork 7
Implement keyboard input handling #1
Copy link
Copy link
Open
Labels
externalThis issue is not needed or prioritized by PlayPulseThis issue is not needed or prioritized by PlayPulseinternalThis issue is needed by PlayPulseThis issue is needed by PlayPulse
Description
This issue consists of several parts, in what I would consider the most convenient implementation order:
- Forward input from wlroots backend to the flutter engine. This includes handling the new keyboard signal emitted by wlroots and registering handlers for key events which call into the flutter engine API.
- Implement keyboard event handling in
SurfaceWidget. This would involve introducing a focus node and adding a handler for keyboard events. Implementing focus-on-click vs focus-on-hover (or some other mechanism) is best left to the consumer, but the dart library should make this easy. - Make sure the surface receives/loses keyboard focus when the focus node receives/loses focus. This involves making a new message handler for managing focus changes in the native code, then forwarding that to wlroots. This would then be called by the
SurfaceWidgetwhen the focus node changes state. - Make sure the surface receives keyboard events correctly. This involves making a new message handler for keyboard events in native code which forwards the events to wlroots. This would be called by the
SurfaceWidgetwhen input events are received.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
externalThis issue is not needed or prioritized by PlayPulseThis issue is not needed or prioritized by PlayPulseinternalThis issue is needed by PlayPulseThis issue is needed by PlayPulse