You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add keyboard shortcut (such as e.g. Ctrl-z) to toggle zen-mode? And if so, also disable how ESC-key takes you out from zen-mode (since it interferes with going into command mode)?
The text was updated successfully, but these errors were encountered:
The following is a workaround, activated by Alt-Shfit-Z. I added it as a userscript, but it probably should work in a %%javascript cell.
//// Jupyter 7: add keyboard shortcut Alt-Shift-Z to Zen Mode// - Alt-Shift-Z is used instead of Ctrl-Shift-Z// because in regular Jupyter cells, one cannot intercept// Ctrl-Shift keys (probably caught by Jupyter)//functionaddKeyboardShortCutToZenMode(){functiongoFullscreen(){// the main notebook body (without menu, toolbars, side panels)document.querySelector('#main-panel > div > div.jp-Notebook').requestFullscreen();}window.addEventListener('keydown',(evt)=>{if(evt.altKey&&evt.shiftKey&&evt.code=='KeyZ'){goFullscreen();}});}addKeyboardShortCutToZenMode();
Would it be possible to add keyboard shortcut (such as e.g. Ctrl-z) to toggle zen-mode? And if so, also disable how ESC-key takes you out from zen-mode (since it interferes with going into command mode)?
The text was updated successfully, but these errors were encountered: