electron: [Bug]: The "Zoom In" shortcut doesn't work

Preflight Checklist

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)

Most upvoted comments

Bump. Incidentally, does anyone know how some Electron apps such as VS Code are working around this issue, where ctrl+plus zooms in fine?

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 pressing ctrl + shift + +, effectively making the shortcut ctrl + *, not ctrl + +. Electron-quick-start repo can be used to observe this issue.

Steps to reproduce:

git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
npm install
setxkbmap de
npm start

Press + / * key while holding ctrl alone (no effect). Press + / * key while holding ctrl and shift (zoom in happens). On German keyboards + / * key is located to left of the upper part of enter (] / } key on UK and US keyboards).