Skip to content

Commit

Permalink
shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryI committed May 18, 2024
1 parent dcbea2b commit a142cbc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
11 changes: 11 additions & 0 deletions template/Overlay.wlx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,17 @@ With[{
const field = document.getElementById("palette-field");
const palette = document.getElementById('palette');

//fallback for the browser
if (!window.electronAPI) {
window.addEventListener("keydown", function (e) {
if (e.ctrlKey && e.key == "p" || e.metaKey && e.key == "p") {
server.emitt('<LocalControls/>', 'True', 'Open');
e.preventDefault();
return false;
}
});
}

let storage;

this.on('Load', () => {
Expand Down

0 comments on commit a142cbc

Please sign in to comment.