-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use default electron implementation for zoomin, zoomout and resetzoom #240
Conversation
Great, thank you @razzeee!! Would we have two people in the community to help test the pull request? You can download the builds below: |
On OS X, the shortcuts are working. But this PR requires Electron v1.3. Because of discussion in #214, we should not use v1.3 now. So unfortunately we should not merge this. |
It might, we'll need to test it |
Rebased, but doesn't seem to solve #334 |
Tested on Windows, can confirm that it doesn't solve #334. For the PR itself, only the following shortcuts work:
Specifically, EDIT: Used these artifacts to test: https://circleci.com/gh/Razzeee/desktop/53#artifacts |
Probably need to add some hidden accelerators for zooming in. |
If we add two accelerators for |
This PR wasn't about adding featues/keystrokes. It should be exactly the same we already have, see https://github.com/electron/electron/blob/9c19b4e3d5bd9a17d46b09e7ee1ebd6fc2fefc30/lib/browser/api/menu-item-roles.js#L119 |
I'm fine adding |
|
Tested on Windows 10 with japanese keyboard.
|
On english keyboard, When clicking a tab bar, the behavior is same with original one. But when clicking the webview, only it is zoomed, and the region is correct. |
@jasonblais Please let me confirm, did you met the behavior like my previous gif? |
Sorry for missing the note below the GIF. I just tested and you're correct, the issue only reproduces after clicking on the tab bar. Tried on both the .exe and .zip files for 64-bit Windows. Note: in v3.4.1 the issue described in #334 occurs whether you've clicked on the webview or the tab bar, at least on 64-bit Windows installer. So this would be an improvement to it. |
For reference electron/electron#7375 |
Thanks all! Yeah, #334 is improved compared to v3.4.1. |
This is a possible followup to #187
The three zoom related menu items are now handled by electron itself.