electron: [Bug]: The "Zoom In" shortcut doesn't work
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Electron Version
v11.4.9
What operating system are you using?
Other Linux
Operating System Version
Linux exia 5.12.11-zen1-1-zen #1 ZEN SMP PREEMPT Wed, 16 Jun 2021 15:25:30 +0000 x86_64 GNU/Linux
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
Pressing the equivalent of Ctrl++
on a Swiss-German Keyboard (Ctrl+Shift+1
) should zoom in.
Pressing Ctrl+-
works as expected.
Actual Behavior
Nothing happens.
Testcase Gist URL
No response
Additional Information
Interestingly enough, it’s even broken in discord.
Resubmission of https://github.com/electron/electron/issues/15496
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 2
- Comments: 19 (6 by maintainers)
they use this workaround https://github.com/electron/electron/issues/15496#issuecomment-450685872
Bump. Incidentally, does anyone know how some Electron apps such as VS Code are working around this issue, where ctrl+plus zooms in fine?
I can confirm this is still a bug with electron v15.3.0, workaround with Ctrl+Shift++ works.
Some more info: On keyboards that have
+ / *
key (pressing the key alone produces+
, pressing while holding shift produces*
) (German, Slovenian, Croatian, etc.), zoom-in is achieved by pressingctrl + shift + +
, effectively making the shortcutctrl + *
, notctrl + +
. Electron-quick-start repo can be used to observe this issue.Steps to reproduce:
Press
+ / *
key while holdingctrl
alone (no effect). Press+ / *
key while holdingctrl
andshift
(zoom in happens). On German keyboards+ / *
key is located to left of the upper part of enter (] / }
key on UK and US keyboards).