How can Zoom In Zoom Out with Ctrl+shift++ and Ctrl+shift+- in electron app


#1

I want Zoom In Zoom Out functionality on my electron app.


#3

Look at BrowserWindow and WebContents doc pages (one of them has the zoom API), and then add an event listener for either keyup or keydown (your choice). For example, https://developer.mozilla.org/en-US/docs/Web/Events/keyup.

Everything you need to know in order to do it is available on the pages I’ve mentioned.