diff --git a/dots/.config/quickshell/ii/modules/ii/overview/SearchWidget.qml b/dots/.config/quickshell/ii/modules/ii/overview/SearchWidget.qml index c99b930c1..c6292c926 100644 --- a/dots/.config/quickshell/ii/modules/ii/overview/SearchWidget.qml +++ b/dots/.config/quickshell/ii/modules/ii/overview/SearchWidget.qml @@ -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 {