mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-04 23:51:10 +02:00
Update StandardDropdown.qml
This commit is contained in:
parent
1620f715e0
commit
b15c1a7fe7
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user