mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
changes from main
This commit is contained in:
@@ -95,6 +95,25 @@ Item { // Wrapper
|
||||
root.focusFirstItem();
|
||||
}
|
||||
}
|
||||
|
||||
// Ctrl+N / Ctrl+P navigation
|
||||
if (event.modifiers & Qt.ControlModifier) {
|
||||
if (event.key === Qt.Key_N) {
|
||||
if (appResults.visible && appResults.count > 0) {
|
||||
// Wrap around the list rather than the default arrow key behaviour
|
||||
appResults.currentIndex = (appResults.currentIndex + 1) % appResults.count;
|
||||
event.accepted = true;
|
||||
return;
|
||||
}
|
||||
} else if (event.key === Qt.Key_P) {
|
||||
if (appResults.visible && appResults.count > 0) {
|
||||
// Wrap around too
|
||||
appResults.currentIndex = (appResults.count + appResults.currentIndex - 1) % appResults.count;
|
||||
event.accepted = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
StyledRectangularShadow {
|
||||
|
||||
Reference in New Issue
Block a user