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:
Olivier Goffart 2022-04-22 09:50:59 +02:00
parent a9bb0065b0
commit 9fe4992a23
2 changed files with 0 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {