mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 03:58:53 +08:00
toggle zen mode in the global menu
This commit is contained in:
parent
3c4ec7fe1a
commit
667471e7bb
2 changed files with 8 additions and 2 deletions
|
@ -108,7 +108,7 @@ function registerEntrypoints() {
|
||||||
$("#container").toggleClass("zen-mode");
|
$("#container").toggleClass("zen-mode");
|
||||||
};
|
};
|
||||||
|
|
||||||
utils.bindGlobalShortcut('alt+m', toggleZenMode);
|
$("#toggle-zen-mode-button").on('click', toggleZenMode);
|
||||||
setActionHandler("ToggleZenMode", toggleZenMode);
|
setActionHandler("ToggleZenMode", toggleZenMode);
|
||||||
|
|
||||||
setActionHandler("InsertDateTime", () => {
|
setActionHandler("InsertDateTime", () => {
|
||||||
|
|
|
@ -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.">
|
<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>
|
<span class="bx bx-empty"></span>
|
||||||
Reload frontend
|
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>
|
||||||
|
|
||||||
<a class="dropdown-item" id="toggle-fullscreen-button">
|
<a class="dropdown-item" id="toggle-fullscreen-button">
|
||||||
|
|
Loading…
Reference in a new issue