Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367062

Summary: [Browser] Text zoom keyboard shortcuts (Ctrl+/Ctrl-) are not working
Product: [Eclipse Project] Platform Reporter: mail.alena.k
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: carolynmacleod4, eclipse, m.ugandhar, ndipol, niraj.modi, remy.suen
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description mail.alena.k CLA 2011-12-19 06:01:03 EST
Build Identifier: 20110218-0911

Browsers provide users with ability to zoom text larger and smaller using Ctrl+/Ctrl- shortcuts.
In SWT Browser widget it's not working.

This is needed for Accessibility.

Reproducible: Always

Steps to Reproduce:
1. Using Eclipse SWT Browser, open any HTML page.
2. Try changing font size (zoom in/zoom out) from the keyboard. Ctrl+/Ctrl- are the standard shortcuts, but they are not working.
Comment 1 Grant Gayed CLA 2011-12-19 10:00:47 EST
To be determined: Whether this is expected to "just work" in the embedded control, or is this functionality triggered by the embedding app.
Comment 2 Carolyn MacLeod CLA 2011-12-19 10:57:18 EST
Note that apparently Ctrl 0 can be used to reset to the default.
Comment 3 Carolyn MacLeod CLA 2011-12-19 11:13:27 EST
Also, ctrl+MouseWheel zooms in/out in FF and IE (probably others). Again, not sure if that is expected to work in embedded browsers or if it's an add-on.
Comment 4 Carolyn MacLeod CLA 2011-12-19 11:16:25 EST
Here's a post by a Notes user who tried a third-party zoom add on that didn't work in IE9. Not sure if this is useful. Just one more data point of people who want this.
http://www-10.lotus.com/ldd/nd85forum.nsf/DateAllFlatWeb/139179b10c09a6028525792600594d13?OpenDocument
Comment 5 Carolyn MacLeod CLA 2011-12-19 11:19:42 EST
Another post from a random stand-alone browser user who is telling folks about Ctrl+/Ctrl-/Ctrl 0. I am mentioning this post because at the end he says "Hope this helps. It used to require to install plug-in to use this feature and now no longer needed anymore. :)". Just wondering if that's a clue about whether it is embedded or not.
http://softwaretracker.blogspot.com/2010/05/zoom-in-and-zoom-out-with-web-browser.html
Comment 6 Carolyn MacLeod CLA 2011-12-19 11:38:35 EST
Is this helpful?
WebBrowser.ExecWB(OLECMDID_OPTICAL_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, zoomBy, 0)
Comment 7 Curtis Windatt CLA 2012-10-15 10:06:43 EDT
*** Bug 391917 has been marked as a duplicate of this bug. ***
Comment 8 Yugandhar M CLA 2012-10-15 22:10:15 EDT
(In reply to comment #7)

Open any html page in Eclipse Web page editor and try to Zoom in and zoom out. I want to know will the zoom controls work in web page editor or to provide zoom controls where I need to modify the code.

> *** Bug 391917 has been marked as a duplicate of this bug. ***
Comment 9 Nicolas DI POL CLA 2015-12-07 17:27:14 EST
I noticed today that the zoom function doesn't work in the SWT Browser widget while using Linux and webkit

and the problem is known since years?

and you can't replace the webkit with Mozilla since GTK doesn't support XULrunner
Comment 10 Niraj Modi CLA 2017-07-04 04:46:29 EDT
Tested with IE11 on Win7 using "Internal Web Browser" and "Snippet307":
- Ctrl+/Ctrl- and 'Ctrl+0'works fine.

Note: Support for Mozilla style browser has been dropped for 4.8. See Bug 518446

Closing, this bug as WORKS_FOR_ME, you can reopen this bug if it still happens with any of the current supported embedded browser/OS platforms.