mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +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() {
|
function selectPreviousItem() {
|
||||||
if (columnid.currentIndex !== 0) {
|
if (columnid.currentIndex !== 0) {
|
||||||
columnid.currentIndex = columnid.currentIndex - 1;
|
repeater.itemAt(--columnid.currentIndex).forceActiveFocus();
|
||||||
repeater.itemAt(columnid.currentIndex).forceActiveFocus();
|
|
||||||
dropdown.Accessible.name = dropdownLabel.text + " " + dropdownText.text
|
|
||||||
changed();
|
changed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectNextItem() {
|
function selectNextItem() {
|
||||||
if (columnid.currentIndex + 1 !== repeater.count) {
|
if (columnid.currentIndex + 1 !== repeater.count) {
|
||||||
columnid.currentIndex = columnid.currentIndex + 1;
|
repeater.itemAt(++columnid.currentIndex).forceActiveFocus();
|
||||||
repeater.itemAt(columnid.currentIndex).forceActiveFocus();
|
|
||||||
dropdown.Accessible.name = dropdownLabel.text + " " + dropdownText.text
|
|
||||||
changed();
|
changed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue