-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional accessibility support (#412)
* Expose getter for currently focused widget. * Remove a level of indirection, exposing the widget event on the top level. * Align widget descriptions more closely with common screen reader conventions. Note that this work isn't complete--I'll correct more cases as I add more widgets and become familiar with their structures. * Add support for click and double-click events. * Add `ValueChanged` events, with initial support for text. * Add support for reporting cursor selection changes. * Track enabled/disabled status. * Move `prev_text` off of the widget struct. * Get rid of `has_widget_info` and push events directly where it makes sense. * Fix typo. * s/text_value/current_text_value/ * Use a `RangeInclusive` for text selection. * Invert parameters. * Various fixes. * Only dispatch `SelectionChanged` if the selection actually changes. * Fix missing focus events. * If values for `current_text` and `prev_text` are unchanged, filter out the previous value. * No need to pass in `&mut prev_text` everywhere * Appease Clippy. * Mask password fields in generated events. Co-authored-by: Emil Ernerfeldt <[email protected]>
- Loading branch information
Showing
4 changed files
with
154 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters