Verified Commit e4652292 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applet: press left/right to switch focus in toolbar

parent fffa9e38
Pipeline #218810 passed with stage
in 2 minutes and 23 seconds
......@@ -59,6 +59,8 @@ RowLayout {
icon.name: enabled ? "network-wireless-on" : "network-wireless-off"
visible: availableDevices.wirelessDeviceAvailable
KeyNavigation.right: wwanSwitchButton.visible ? wwanSwitchButton : wwanSwitchButton.KeyNavigation.right
onToggled: handler.enableWireless(checked);
PlasmaComponents3.ToolTip {
......@@ -75,6 +77,9 @@ RowLayout {
icon.name: enabled ? "network-mobile-on" : "network-mobile-off"
visible: availableDevices.modemDeviceAvailable
KeyNavigation.left: wifiSwitchButton
KeyNavigation.right: planeModeSwitchButton.visible ? planeModeSwitchButton : planeModeSwitchButton.KeyNavigation.right
onToggled: handler.enableWwan(checked);
PlasmaComponents3.ToolTip {
......@@ -93,6 +98,9 @@ RowLayout {
visible: availableDevices.modemDeviceAvailable || availableDevices.wirelessDeviceAvailable
KeyNavigation.left: wwanSwitchButton.visible ? wwanSwitchButton : wwanSwitchButton.KeyNavigation.left
KeyNavigation.right: hotspotButton.visible ? hotspotButton : hotspotButton.KeyNavigation.right
onToggled: {
handler.enableAirplaneMode(checked);
PlasmaNM.Configuration.airplaneModeEnabled = checked;
......@@ -114,6 +122,9 @@ RowLayout {
text: i18n("Hotspot")
icon.name: "network-wireless-on"
KeyNavigation.left: planeModeSwitchButton.visible ? planeModeSwitchButton : planeModeSwitchButton.KeyNavigation.left
KeyNavigation.right: searchTextField
onClicked: {
if (PlasmaNM.Configuration.hotspotConnectionPath) {
checked = false
......@@ -159,6 +170,8 @@ RowLayout {
// always in the correct state on show.
focus: plasmoid.expanded && !Kirigami.InputMethod.willShowOnActive
KeyNavigation.left: hotspotButton.visible ? hotspotButton : hotspotButton.KeyNavigation.left
onTextChanged: {
appletProxyModel.setFilterFixedString(text)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment