Skip to content
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

Ctrl+= for Zoom In not working but Ctrl+- for zoom out is working #5612

Closed
kendonB opened this issue Oct 23, 2019 · 6 comments
Closed

Ctrl+= for Zoom In not working but Ctrl+- for zoom out is working #5612

kendonB opened this issue Oct 23, 2019 · 6 comments
Labels
bug key bindings stale Issues which have been closed automatically due to inactivitiy.

Comments

@kendonB
Copy link

kendonB commented Oct 23, 2019

System details

RStudio Edition : Desktop
RStudio Version : 1.2.1578
OS Version      : Windows 10
R Version       :  3.6.1

Steps to reproduce the problem

Press Ctrl+= then Ctrl+-

Describe the problem in detail

Zoom out works but zoom in doesn't work

Describe the behavior you expected

Both zoom out and in work. I was able to assign zoom in to Ctrl+= in the modify keyboard shortcuts dialog to get the behavior I'm after. However, neither Ctrl+- nor Ctrl+= were assigned and yet Ctrl+- worked to zoom out.

This is the current setup and they both are active and working.
image

The behavior I'd expect out of the box is that these are both explicitly assigned Ctrl+= to Zoom In and Ctrl+- to Zoom Out.

@aukeschaap
Copy link

aukeschaap commented Oct 23, 2019

The correct keyboard shortcut for 'Zoom In' is Ctrl++ or in other words, Ctrl+Shift+=. This is probably intended as under 'View' you can see the shortcut for 'Zoom In' being mentioned.

edit: attached screenshot
Screenshot (41)

@kendonB
Copy link
Author

kendonB commented Oct 23, 2019

I see. The lack of symmetry between the two commands is a bit weird then with one requiring the shift and the other not. A few other programs default behavior on my machine:

Chrome: Ctrl+=, Ctrl+Shift+=, Ctrl+-, and Ctrl+Shift+- all work.
VSCode: Ctrl+=, Ctrl+Shift+=, Ctrl+-, and Ctrl+Shift+- all work.
Notepad: Ctrl+=, Ctrl+- work.
Notepad++: None of these work on this laptop but they appear to be mapped to Ctrl+NUMPAD+ and Ctrl+NUMPAD-.
Git bash: Ctrl+=, Ctrl+Shift+=, Ctrl+- work.

I quite like the Chrome/VSCode behavior where they just all work.

@kevinushey
Copy link
Contributor

I agree it would be useful (for symmetry) to have all of these work, or at least have all of the variants using Shift (or not Shift) to work.

@gtritchie
Copy link
Member

Somewhat related: #1683

@stale
Copy link

stale bot commented Feb 5, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@stale stale bot added the stale Issues which have been closed automatically due to inactivitiy. label Feb 5, 2021
@stale
Copy link

stale bot commented Feb 19, 2021

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Feb 19, 2021
rstub added a commit to rstub/rstudio that referenced this issue Mar 25, 2024
gtritchie added a commit that referenced this issue Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug key bindings stale Issues which have been closed automatically due to inactivitiy.
Projects
None yet
Development

No branches or pull requests

5 participants