-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Add shift + [1-5] keyboard shortcuts to zoom out #50498
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't think about this at first, but it seems like a good idea to me.
Maybe GIMP could do the same eventually… 👀
My only concern is that web browsers use Alt + (number key) to switch between tabs, and we may want to implement this in Godot eventually. If we go forward with this, we may have to replace the use of Alt with another modifier such as Ctrl or Shift. However, holding Shift may be required to trigger the number keys in the first place on non-QWERTY keyboard layouts.
Haha, possibly, although I think it makes more sense in the context of Godot because in Gimp you generally work mainly in one area that you can see all of when you're at 100% zoom, but in Godot your scenes often take up more than one full screen. |
FYI: Lines 7013 to 7024 in 60add98
|
@timothyqiu Maybe shift instead? |
Yeah, GIMP uses |
ccc9079
to
e3e8c23
Compare
Alright, I've changed it to use shift instead. Another alternative I considered was using [6-0] for zooming out, but I thought that wasn't the most intuitive because [1-5] gets more and more zoomed in and then after [6-0] it'd switch to getting more and more zoomed out. I also considered making 1 the most zoomed out and 0 the most zoomed in (so it gets more and more zoomed in as you go along), but this might be confusing to people coming from GIMP etc. shift isn't too bad though, I think it works fine. |
Thanks! |
While testing #48252, it occurred to me it'd probably be useful to be able to zoom out quickly as well, for tilemaps/wordbuilding etc.
shift + 1: zoom to 50%
shift + 2: zoom to 25%
shift + 3: zoom to 12.5%
shift + 4: zoom to 6.25%
shift + 5: zoom to 3.125%
3.x version here: #50499