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

View File

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

View File

@ -47,6 +47,28 @@ function Shortcuts() {
</div> </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> </Card>
{/* Chat */} {/* Chat */}