Skip to content

Commit

Permalink
improve console key
Browse files Browse the repository at this point in the history
  • Loading branch information
datkat21 committed Jan 23, 2024
1 parent 6bbda75 commit 6621c23
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pkgs/system/BootLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export default {
document.documentElement.dataset.dockStyle = appearanceConfig.dockStyle;
}
if (appearanceConfig.dockShowTray !== undefined) {
document.documentElement.dataset.dockShowTray = appearanceConfig.dockShowTray;
document.documentElement.dataset.dockShowTray =
appearanceConfig.dockShowTray;
}
if (
appearanceConfig.language &&
Expand Down Expand Up @@ -157,9 +158,8 @@ export default {
const consoleApp = await Root.Core.startPkg("system:Console", true, true);

document.addEventListener("keydown", (e) => {
if (e.key === "`") {
if (e.key === "~") {
e.preventDefault();
// send msg
consoleApp.proc.send({ type: "toggle" });
}
});
Expand All @@ -178,10 +178,8 @@ export default {
);
}

return Root.Lib.setupReturns(
(m) => {
console.log("BootLoader received message: " + m);
}
);
return Root.Lib.setupReturns((m) => {
console.log("BootLoader received message: " + m);
});
},
};

0 comments on commit 6621c23

Please sign in to comment.