mirror of
https://github.com/pvrzz/atmosphere.git
synced 2026-11-29 05:22:26 +00:00
Quick search across the library (Ctrl+K) with link and online search shortcuts
This commit is contained in:
@@ -239,6 +239,7 @@ async function init() {
|
||||
bindConnect();
|
||||
bindUpdates();
|
||||
bindPlaybackSettings();
|
||||
bindSearch();
|
||||
bindStats();
|
||||
await listen("atmosphere://job", (e) => onJob(e.payload));
|
||||
await listen("atmosphere://probe", (e) => onProbe(e.payload));
|
||||
@@ -435,7 +436,10 @@ function go(view) {
|
||||
|
||||
function onKey(e) {
|
||||
const mod = e.ctrlKey || e.metaKey;
|
||||
if (mod && (e.key === "k" || e.key === "l")) {
|
||||
if (mod && e.key.toLowerCase() === "k") {
|
||||
e.preventDefault();
|
||||
openSearch();
|
||||
} else if (mod && e.key.toLowerCase() === "l") {
|
||||
e.preventDefault();
|
||||
go("get");
|
||||
$("#commandInput").focus();
|
||||
|
||||
Reference in New Issue
Block a user