Select streams with Up/Down arrow keys.
By default, no device is selected. If you press a key, it will be forwarded to the default sink.
You can use Up
/Down
to navigate streams. You can switch between the
Devices and Applications tabs with Up
/Down
as well. I considered
focusing the tabbar to have a more natural Left
/Right
navigation
however the tabbar doesn't have a visible difference when it is
highlighted.
This uses the same logic as my volume mixer widget.
This is the 2nd patch mentioned in !59 (merged).
TODO
-
Use a better currentItem highlight than a Rectangle
1px outline. ListView supports aListView.highlight
which I should probably be using. -
Remove debugging console.log()
-
Bind Plasmoid.onActivated: dialogOpened(usedKeyboard=true)
-
Bind compactMouseArea.onClicked: dialogOpened(usedKeyboard=false)