Update StandardDropdown.qml

This commit is contained in:
rating89us 2021-07-06 09:47:04 +02:00 committed by GitHub
parent 1620f715e0
commit b15c1a7fe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,18 +73,14 @@ ColumnLayout {
function selectPreviousItem() {
if (columnid.currentIndex !== 0) {
columnid.currentIndex = columnid.currentIndex - 1;
repeater.itemAt(columnid.currentIndex).forceActiveFocus();
dropdown.Accessible.name = dropdownLabel.text + " " + dropdownText.text
repeater.itemAt(--columnid.currentIndex).forceActiveFocus();
changed();
}
}
function selectNextItem() {
if (columnid.currentIndex + 1 !== repeater.count) {
columnid.currentIndex = columnid.currentIndex + 1;
repeater.itemAt(columnid.currentIndex).forceActiveFocus();
dropdown.Accessible.name = dropdownLabel.text + " " + dropdownText.text
repeater.itemAt(++columnid.currentIndex).forceActiveFocus();
changed();
}
}