mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
StandardListView: restore behavior to get focus on click
In previous versions of Slint, the StandardListView gets the focus on click so we can move the selected items with the up and down arrow
This commit is contained in:
parent
a9bb0065b0
commit
9fe4992a23
2 changed files with 0 additions and 2 deletions
|
@ -466,7 +466,6 @@ export StandardListView := ListView {
|
|||
}
|
||||
}
|
||||
fs := FocusScope {
|
||||
width: 0px; // Do not react on clicks
|
||||
property<int> actual-current-item: -1;
|
||||
key-pressed(event) => {
|
||||
if (event.text == Keys.UpArrow && current-item > 0) {
|
||||
|
|
|
@ -71,7 +71,6 @@ export StandardListView := ListView {
|
|||
}
|
||||
}
|
||||
fs := FocusScope {
|
||||
width: 0px; // Do not react on clicks
|
||||
property<int> actual-current-item: -1;
|
||||
key-pressed(event) => {
|
||||
if (event.text == Keys.UpArrow && current-item > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue