diff --git a/default/quickshell/omarchy-shell/Ui/Dropdown.qml b/default/quickshell/omarchy-shell/Ui/Dropdown.qml index d7340557..9187b8f7 100644 --- a/default/quickshell/omarchy-shell/Ui/Dropdown.qml +++ b/default/quickshell/omarchy-shell/Ui/Dropdown.qml @@ -136,23 +136,26 @@ Item { radius: Style.cornerRadius } - onOpened: optionList.currentIndex = Math.max(0, optionList.indexOfValue(root.value)) - - Keys.onPressed: function(event) { - if (event.key === Qt.Key_Escape) { popup.close(); event.accepted = true } - else if (event.key === Qt.Key_Down || event.text === "j") { - optionList.currentIndex = Math.min(root.options.length - 1, optionList.currentIndex + 1) - event.accepted = true - } else if (event.key === Qt.Key_Up || event.text === "k") { - optionList.currentIndex = Math.max(0, optionList.currentIndex - 1) - event.accepted = true - } else if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { - optionList.selectCurrent(); event.accepted = true - } + onOpened: { + optionList.currentIndex = Math.max(0, optionList.indexOfValue(root.value)) + optionList.forceActiveFocus() } contentItem: ListView { id: optionList + + Keys.onPressed: function(event) { + if (event.key === Qt.Key_Escape) { popup.close(); event.accepted = true } + else if (event.key === Qt.Key_Down || event.text === "j") { + optionList.currentIndex = Math.min(root.options.length - 1, optionList.currentIndex + 1) + event.accepted = true + } else if (event.key === Qt.Key_Up || event.text === "k") { + optionList.currentIndex = Math.max(0, optionList.currentIndex - 1) + event.accepted = true + } else if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { + optionList.selectCurrent(); event.accepted = true + } + } implicitHeight: contentHeight clip: true boundsBehavior: Flickable.StopAtBounds diff --git a/default/quickshell/omarchy-shell/Ui/SearchableDropdown.qml b/default/quickshell/omarchy-shell/Ui/SearchableDropdown.qml index 549797be..b81695fe 100644 --- a/default/quickshell/omarchy-shell/Ui/SearchableDropdown.qml +++ b/default/quickshell/omarchy-shell/Ui/SearchableDropdown.qml @@ -1,5 +1,5 @@ import QtQuick -import QtQuick.Controls +import QtQuick.Controls as QQC import qs.Commons // Searchable single-select dropdown. Same trigger shape as Dropdown, but @@ -140,7 +140,7 @@ Item { } } - Popup { + QQC.Popup { id: popup x: 0 y: trigger.height + 2 diff --git a/default/quickshell/omarchy-shell/plugins/settings/SettingsPanel.qml b/default/quickshell/omarchy-shell/plugins/settings/SettingsPanel.qml index 9f59f151..da6280b8 100644 --- a/default/quickshell/omarchy-shell/plugins/settings/SettingsPanel.qml +++ b/default/quickshell/omarchy-shell/plugins/settings/SettingsPanel.qml @@ -787,7 +787,6 @@ Item { } foreground: root.foreground accent: root.accent - cornerRadius: root.cornerRadius fontFamily: root.fontFamily onChanged: function(v) { if (v) root.addEntry(section.sectionKey, v) } }