feat: add focusable property to all widget
This commit is contained in:
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
||||
- `spacing` property to eventbox.
|
||||
- `space_evenly` property to eventbox.
|
||||
- An advanced widget named `flowbox`.
|
||||
- `focusable` property to all widget.
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
@@ -2367,6 +2367,10 @@ pub(super) fn resolve_rhai_widget_attrs(gtk_widget: >k4::Widget, props: &Map)
|
||||
gtk_widget.set_can_target(can_target);
|
||||
}
|
||||
|
||||
if let Ok(focusable) = get_bool_prop(&props, "focusable", Some(true)) {
|
||||
gtk_widget.set_focusable(focusable);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user