diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f580bb48..db845e30 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -Contributions are welcome and encourages. +Contributions are welcome and encouraged. ## Formatting @@ -27,4 +27,4 @@ Sometimes it just breaks code though. Like turning `"_\""` into `"_""`, so you m ## Pull request -Include screenshots/video if applicable in your pull request if applicable, to visualize what your change is affecting. \ No newline at end of file +Include screenshots/video if applicable in your pull request if applicable, to visualize what your change is affecting. diff --git a/Modals/Spotlight/SpotlightContent.qml b/Modals/Spotlight/SpotlightContent.qml index 2eba05c0..f7b3783d 100644 --- a/Modals/Spotlight/SpotlightContent.qml +++ b/Modals/Spotlight/SpotlightContent.qml @@ -33,6 +33,18 @@ Item { } else if (event.key === Qt.Key_Left && appLauncher.viewMode === "grid") { appLauncher.selectPreviousInRow() event.accepted = true + } else if (event.key == Qt.Key_J && event.modifiers & Qt.ControlModifier) { + appLauncher.selectNext() + event.accepted = true + } else if (event.key == Qt.Key_K && event.modifiers & Qt.ControlModifier) { + appLauncher.selectPrevious() + event.accepted = true + } else if (event.key == Qt.Key_L && event.modifiers & Qt.ControlModifier && appLauncher.viewMode === "grid") { + appLauncher.selectNextInRow() + event.accepted = true + } else if (event.key == Qt.Key_H && event.modifiers & Qt.ControlModifier && appLauncher.viewMode === "grid") { + appLauncher.selectPreviousInRow() + event.accepted = true } else if (event.key === Qt.Key_Tab) { if (appLauncher.viewMode === "grid") { appLauncher.selectNextInRow() @@ -47,6 +59,20 @@ Item { appLauncher.selectPrevious() } event.accepted = true + } else if (event.key === Qt.Key_N && event.modifiers & Qt.ControlModifier) { + if (appLauncher.viewMode === "grid") { + appLauncher.selectNextInRow() + } else { + appLauncher.selectNext() + } + event.accepted = true + } else if (event.key === Qt.Key_P && event.modifiers & Qt.ControlModifier) { + if (appLauncher.viewMode === "grid") { + appLauncher.selectPreviousInRow() + } else { + appLauncher.selectPrevious() + } + event.accepted = true } else if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { appLauncher.launchSelected() event.accepted = true