mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(core): add ctrl '+' key as zoom in (#12911)
* add '+' key as zoom in * add changefile --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
5
.changes/fix-zoom.md
Normal file
5
.changes/fix-zoom.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Listen for `Ctrl +` or `Cmd +` to support zoom functionality in swedish keyboard layouts.
|
||||
@@ -13,7 +13,7 @@ window.addEventListener('keydown', (event) => {
|
||||
if (OS_NAME === 'macos' ? event.metaKey : event.ctrlKey) {
|
||||
if (event.key === '-') {
|
||||
zoomLevel -= 0.2
|
||||
} else if (event.key === '=') {
|
||||
} else if (event.key === '=' || event.key === '+') {
|
||||
zoomLevel += 0.2
|
||||
} else if (event.key === '0') {
|
||||
zoomLevel = 1
|
||||
|
||||
Reference in New Issue
Block a user