mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-02 02:26:00 +00:00
SessionMenu: implement tab based navigation with wrapping next/previous functions
This commit is contained in:
@@ -204,6 +204,18 @@ NPanel {
|
||||
enabled: root.opened
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequence: "Tab"
|
||||
onActivated: ui.selectNextWrapped()
|
||||
enabled: root.opened
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequence: "Shift+Tab"
|
||||
onActivated: ui.selectPreviousWrapped()
|
||||
enabled: root.opened
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequence: "Home"
|
||||
onActivated: ui.selectFirst()
|
||||
@@ -259,6 +271,14 @@ NPanel {
|
||||
root.selectLast()
|
||||
}
|
||||
|
||||
function selectNextWrapped() {
|
||||
root.selectNextWrapped()
|
||||
}
|
||||
|
||||
function selectPreviousWrapped() {
|
||||
root.selectPreviousWrapped()
|
||||
}
|
||||
|
||||
function activate() {
|
||||
root.activate()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user