chore: enable shortcut zoom (#5261)

* chore: enable shortcut zoom

* chore: update shortcut setting
This commit is contained in:
Faisal Amir 2025-06-13 11:37:34 +07:00 committed by GitHub
parent 72aa39d67f
commit 2b8c448be4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 10 deletions

View File

@ -2,16 +2,13 @@
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "enables the default permissions",
"windows": [
"main"
],
"windows": ["main"],
"remote": {
"urls": [
"http://*"
]
"urls": ["http://*"]
},
"permissions": [
"core:default",
"core:webview:allow-set-webview-zoom",
"core:window:allow-start-dragging",
"core:window:allow-set-theme",
"shell:allow-spawn",
@ -81,9 +78,7 @@
{
"identifier": "opener:allow-open-url",
"description": "opens the default permissions for the core module",
"windows": [
"*"
],
"windows": ["*"],
"allow": [
{
"url": "https://*"
@ -98,4 +93,4 @@
},
"store:default"
]
}
}

View File

@ -13,6 +13,7 @@
"macOSPrivateApi": true,
"windows": [
{
"zoomHotkeysEnabled": true,
"label": "main",
"title": "Jan",
"width": 1024,

View File

@ -47,6 +47,28 @@ function Shortcuts() {
</div>
}
/>
<CardItem
title="Zoom In"
description="Increase the zoom level"
actions={
<div className="flex items-center justify-center px-3 py-1 bg-main-view-fg/5 rounded-md">
<span className="font-medium">
<PlatformMetaKey /> +
</span>
</div>
}
/>
<CardItem
title="Zoom Out"
description="Decrease the zoom level"
actions={
<div className="flex items-center justify-center px-3 py-1 bg-main-view-fg/5 rounded-md">
<span className="font-medium">
<PlatformMetaKey /> -
</span>
</div>
}
/>
</Card>
{/* Chat */}