Skip to content

Commit

Permalink
Update 0000-shared-widget-state.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaunkst authored Dec 1, 2022
1 parent cb3aa18 commit 8e9dc6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions text/0000-shared-widget-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,16 @@ For keyboard mapping we would need to map the gamepad messages to keyboard event
> # Implementation strategy
> ## The details of how we store and retrieve the focus state should be discussed here. The following code is an example of how this could be implemented. This is not meant to be a final solution but a starting point for discussion.
```rs
>
> This is the most important part of the RFC.
>
> Explain the design in sufficient detail that:
> - Its interaction with other features is clear.
> - It is reasonably clear how the feature would be implemented.
> - Corner cases are dissected by example.
```
### Focus Message
To update our widgets we will generate a message with the widget leaving focus, and then another with the widget receiving focus.

### Focusable Trait
The `Focusable` trait will be used to store the `Id` of the widget and provide methods to query and update the focus state of the widget.
Expand Down

0 comments on commit 8e9dc6e

Please sign in to comment.