mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Implement accessible-delegate-focus
for the AccessKit backend
This commit is contained in:
parent
6717e627a1
commit
28b5a67583
2 changed files with 25 additions and 7 deletions
|
@ -33,6 +33,8 @@ component StandardListViewBase inherits ListView {
|
|||
private property <length> current-item-y: root.item-y(root.focus-item);
|
||||
private property <int> focus-item: 0;
|
||||
|
||||
accessible-delegate-focus: root.focus-item;
|
||||
|
||||
pure function first-visible-item() -> int {
|
||||
return min(root.model.length - 1, max(0, round(-root.viewport-y / root.item-height)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue