mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
Merge pull request #4225 from SiriusXT/master
Click the button to reset the zoom level
This commit is contained in:
commit
72b2a6ecb6
@ -53,7 +53,10 @@ class ZoomComponent extends Component {
|
||||
zoomInEvent() {
|
||||
this.setZoomFactorAndSave(this.getCurrentZoom() + 0.1);
|
||||
}
|
||||
|
||||
zoomResetEvent() {
|
||||
this.setZoomFactorAndSave(1);
|
||||
}
|
||||
|
||||
setZoomFactorAndSaveEvent({zoomFactor}) {
|
||||
this.setZoomFactorAndSave(zoomFactor);
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ const TPL = `
|
||||
|
||||
<a data-trigger-command="zoomOut" title="Zoom Out" class="bx bx-minus"></a>
|
||||
|
||||
<span class="zoom-state"></span>
|
||||
<span data-trigger-command="zoomReset" title="Reset Zoom Level" class="zoom-state"></span>
|
||||
|
||||
<a data-trigger-command="zoomIn" title="Zoom In" class="bx bx-plus"></a>
|
||||
</div>
|
||||
|
@ -495,6 +495,12 @@ const DEFAULT_KEYBOARD_ACTIONS = [
|
||||
defaultShortcuts: isElectron ? ["CommandOrControl+="] : [],
|
||||
scope: "window"
|
||||
},
|
||||
{
|
||||
actionName: "zoomReset",
|
||||
description: "Reset zoom level",
|
||||
defaultShortcuts: isElectron ? ["CommandOrControl+0"] : [],
|
||||
scope: "window"
|
||||
},
|
||||
{
|
||||
actionName: "copyWithoutFormatting",
|
||||
defaultShortcuts: ["CommandOrControl+Alt+C"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user