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

Alt/Option + Scroll Wheel for Zoom shortcut #3730

Open
Gazook89 opened this issue Sep 16, 2024 · 2 comments
Open

Alt/Option + Scroll Wheel for Zoom shortcut #3730

Gazook89 opened this issue Sep 16, 2024 · 2 comments

Comments

@Gazook89
Copy link
Collaborator

Your idea:

Affinity programs (Designer, Photo, Publisher) and Adobe programs (InDesign, Photoshop, etc) use Alt/Option + Scroll Wheel with the cursor in the window to zoom the window. I'd like to add that functionality into HB, when the cursor is in the iFrame.

As I've been doing a lot of work in Publisher to create a new Theme for HB, I keep switching to HB and trying the shortcut for zooming and getting frustrated it doesn't work. Now we have the zoom functionality in, it should be easy to add such a shortcut.

It should be limited to the iframe (doing the shortcut on the Editor shouldn't change anything).

@5e-Cleric
Copy link
Member

We could add to this using right and left arrow to navigate pages, as most if not all pdf viewers do.

@Gazook89
Copy link
Collaborator Author

I wouldn't want to do any keyboard navigation in the same PR that covers my request above. I believe it keyboard navigation is more complicated in design.

With my proposed feature, we can listen for mousescroll events inside the iFrame or Preview pane which is just based on the mouse position.

With keyboard interactions, we would need to be sure that the Preview Pane/iFrame has focus set on it, which I don't believe we really have right now. Without focus, we don't know if pressing left or right arrows should move the cursor in the Editor or not (or any other place). Maybe I'm wrong about the difficulty, but my brain just has some flashing lights saying "context sensitive hotkeys are hard when you have no way of focusing the context".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants