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

Fix initial Todo shortcuts display #1083

Merged
merged 2 commits into from
Feb 27, 2023
Merged

Conversation

decodism
Copy link
Contributor

@decodism decodism commented Feb 24, 2023

@rxhanson
Copy link
Owner

rxhanson commented Feb 25, 2023

Thanks for following up on that issue.

On the initial initial shortcut display, there was intention behind having it that way, but I agree that it feels like a bug.

By only initializing the shortcut when Todo mode was added to the menu, Rectangle wasn't adding a keyboard shortcut unless the user showed intent to use Todo mode. Todo mode wasn't in the initial feature set, and I didn't secretly bind a keyboard shortcut if the user did not show interest (and some users just don't go through the settings tab).

Since a user would still have to enable todo mode in the menu in order to set the todo application, it's actually acceptable to me to leave it the way it was before this change. Since the shortcuts aren't cleared when todo mode is removed from the menu, it is straightforward that those shortcuts are still registered. With your change, the shortcuts are displayed but not registered until after the user adds todo mode to the menu, and they aren't unregistered if todo mode is removed. All this feels a little nitpicky, but I think it makes sense to make it as straightforward as possible at this time.

I'm good with either leaving it the way it was prior to this change, or revising the registering and unregistering of the todo mode shortcuts to be clear when they are in effect. (Or I'm open to any other suggestions). If you wanted to make those changes, that's great, and if not then I don't mind making the changes. Thanks!

@decodism
Copy link
Contributor Author

I'm not sure I follow you, but here's what I did:

  • Unregister the shortcuts
  • Hide settings when hidden in the menu

@rxhanson rxhanson merged commit 4dda4fd into rxhanson:master Feb 27, 2023
@rxhanson
Copy link
Owner

Thanks! This covers the edge case I was concerned with - the case where a user might be confused about a keyboard shortcut binding that either isn't active or is unintentionally active.

@decodism decodism deleted the master-2 branch February 27, 2023 10:14
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

Successfully merging this pull request may close these issues.

TODO Mode broken on Version 0.66 (72)
2 participants