-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[MacOS] Keyboard Shortcuts to Zoom In & Out #978
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
I fully agree with the suggestion, the mouse option is highly unusable and no num keypad in most Macs... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information. |
Please don't close it, the issue still persists and is still relevant. |
I had this problem as well and ended up here from some searching. I was able to "solve" (hack) the problem using BetterTouchTool (and using an Accessibility Keyboard Panel to temporarily simulate the number pad, which you don't need to do). I've exported the settings for the draw.io app which you can import into BetterTouchTool if you use it. This maps https://gist.github.com/bbugh/40f852294fcb3029bfd06044bd994538 |
Having this same problem. FYI: noticed chancing the zoom level explicitly using "control + 0" works okayish for the zoom in/zoom out purposes from the laptop keyboard. |
I use awesome-hammerspoon (shoutout @wyne) to remap spoon.AppBindings:bind("draw.io", {
{ { "cmd" }, "=", { "cmd" }, "pad+" },
})
spoon.AppBindings:bind("draw.io", {
{ { "cmd" }, "-", { "cmd" }, "pad-" },
}) |
Hi all, |
Hi @schoblaska , |
@datgausaigon It looks like it's a Lua script, so you would need to have Lua installed on your Mac. |
@gammalogic Got it, thanks ❤️ |
In 24.6.1. |
@davidjgraph In 24.6.1 this issue is fixed. But the Zoom In Shortcut (cmd +) not work. Please check. |
@datgausaigon you're not the original poster, please open a new issue with full details. |
@davidjgraph Yep, this is my mistake. I created the issue here: #1792 |
@davidjgraph hey, original poster here. Thank you for looking into the issue. I just downloaded the latest version 24.6.1 on Mac and whilst |
Yeah, we've got a new issue for that, as posted. It's working on the online version, we're trying to work out why it's not working for cmd + in the desktop version. |
Both zoom in and out are working in v24.6.4 |
@OliverPearmain Yep, both Web and Desktop app work well. Thanks @davidjgraph ❤️ |
Preflight Checklist
Describe the bug
This is regarding the Mac app specifically, although it may also apply to other platforms
I would expect
CMD -
andCMD +
to control the zoom, as is done in most other applications, however this does not work in drawio-desktop.From looking at the hints, it looks like the numpad might be required to perform zoom operations via the keyboard. However I don't have a numpad keyboard, and I suspect the large majority of Mac users don't either
Its therefore impossible to zoom in and out using keyboard shortcuts, unless one uses the alt mouse-scroll option but thats massively over-sensitive and unusable in my opinion.
It would be highly benefical if one could zoom in and out with regular
CMD -
andCMD +
To Reproduce
Steps to reproduce the behavior:
CMD -
orCMD +
Expected behavior
The diagram should zoom in with
CMD +
and out withCMD -
draw.io version (In the Help->About menu of the draw.io editor):
Desktop (please complete the following information):
Additional context
The draw.io website also does not respond to
CMD -
andCMD +
shortcuts either. I expect this is to avoid a clash with the browsers zoom shortcuts (see video below) however in the context of the drawio-desktop application we don't have the browser keyboard shortcuts to contend with so I was wondering if the application layer could just forwardCMD -
/CMD +
presses toCMD - (numpad)
/CMD + (numpad)
Draw.io-zoom.mov
The text was updated successfully, but these errors were encountered: