toggle zen mode in the global menu

This commit is contained in:
zadam 2019-11-19 23:33:07 +01:00
parent 3c4ec7fe1a
commit 667471e7bb
2 changed files with 8 additions and 2 deletions

View file

@ -108,7 +108,7 @@ function registerEntrypoints() {
$("#container").toggleClass("zen-mode");
};
utils.bindGlobalShortcut('alt+m', toggleZenMode);
$("#toggle-zen-mode-button").on('click', toggleZenMode);
setActionHandler("ToggleZenMode", toggleZenMode);
setActionHandler("InsertDateTime", () => {

View file

@ -78,7 +78,13 @@
<a class="dropdown-item" id="reload-frontend-button" title="Reload can help with some visual glitches without restarting the whole app.">
<span class="bx bx-empty"></span>
Reload frontend
<kbd>CTRL-R</kbd>
<kbd>CTRL+R</kbd>
</a>
<a class="dropdown-item" id="toggle-zen-mode-button">
<span class="bx bx-empty"></span>
Toggle Zen mode
<kbd>ALT+M</kbd>
</a>
<a class="dropdown-item" id="toggle-fullscreen-button">