mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Update StandardDropdown.qml
This commit is contained in:
parent
1620f715e0
commit
b15c1a7fe7
1 changed files with 2 additions and 6 deletions
|
@ -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 a new issue