Skip to content

Commit

Permalink
hotkeys: Ctrl-Shift-F -> fullscreen, Cmd+] -> next sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
delanni committed Aug 20, 2024
1 parent f853e3c commit ccf3e94
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bundle.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -47505,6 +47505,14 @@
console.log(`Speed is ${window.speed}`);
});

emitter.on('fullscreen', () => {
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen();
} else if (document.exitFullscreen) {
document.exitFullscreen();
}
})

emitter.on('gallery:saveToURL', function () {
let editor = state.editor.editor
const editorText = editor.getValue()
Expand Down Expand Up @@ -48204,15 +48212,18 @@
'Ctrl-/': 'editor:toggleComment',
'Alt-Enter': 'editor:evalBlock',
'Shift-Ctrl-G': 'gallery:shareSketch',
'Shift-Ctrl-F': 'editor:formatCode',
// 'Shift-Ctrl-F': 'editor:formatCode',
'Shift-Ctrl-L': 'gallery:saveToURL',

'Shift-Ctrl-H': 'hideAll',
'Cmd-H': 'hideAll',
'Shift-Ctrl-F': 'fullscreen',

'Shift-Ctrl-S': 'screencap',
'Shift-Ctrl-C': 'gallery:search',

'Cmd-]': 'gallery:nextSketch',

// Poop mode
'Shift-Ctrl-X': 'editor:toggleAutomutate', // poop toggle with prompt
'Shift-Ctrl-0': 'editor:toggleAutomutate', // poop off
Expand Down

0 comments on commit ccf3e94

Please sign in to comment.