forked from Shinonome/dots-hyprland
changes from main
This commit is contained in:
@@ -95,6 +95,25 @@ Item { // Wrapper
|
|||||||
root.focusFirstItem();
|
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 {
|
StyledRectangularShadow {
|
||||||
|
|||||||
Reference in New Issue
Block a user