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

Desktop: add + to access 'Zoom In', allows to use the numpad #2630

Merged
merged 3 commits into from
Apr 30, 2020

Conversation

tessus
Copy link
Collaborator

@tessus tessus commented Mar 1, 2020

This change aligns Joplin's behavior with all other apps that have shortcuts for Zoom In.
It therefore improves the user experience.

/ref

This change aligns Joplin's behavior with all other apps that have shortcuts for `Zoom In`.
It therefore improves the user experience.

/ref

https://discourse.joplinapp.org/t/please-help-test-the-new-desktop-pre-release/6445/2?u=tessus
laurent22#2165 (comment)
@tessus tessus added desktop All desktop platforms PR-tested labels Mar 1, 2020
@tessus
Copy link
Collaborator Author

tessus commented Mar 4, 2020

Just as an info. This came also up in the beta-testing topic.

@tessus
Copy link
Collaborator Author

tessus commented Mar 11, 2020

IMO this change is important, especially since the shortcut recorder (GSoC) will have to deal with such a special case: 2 menu items for the same action but only one visible.

I want to get the number of open PRs down. It's time to merge/close the low hanging fruits.

@@ -1025,6 +1025,13 @@ class Application extends BaseApplication {
click: () => {
Setting.incValue('windowContentZoomFactor', 10);
},
accelerator: 'CommandOrControl+Plus',
}, {
label: _('Zoom In'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the item is not visible, can we remove the label? Or does it not working if there's no label?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, when we remove the label, it won't work. But we can set it to an empty string.
But I think we should leave it as is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laurent22 not aure, if you saw my comment.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine, but please could you add a comment above to explain why the menu item is duplicated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do that later this evening. Sorry, I didn't see your comment earlier. I actually wanted to do that anyway, but forgot. Thanks for the reminder.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the comment ok?

@tessus
Copy link
Collaborator Author

tessus commented Apr 6, 2020

Can I merge this?

@laurent22
Copy link
Owner

Looks good, thanks @tessus!

@laurent22 laurent22 merged commit bf47237 into laurent22:master Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop All desktop platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants