-
-
Notifications
You must be signed in to change notification settings - Fork 455
Handle duplicate hotkeys in HotkeyControlDialog #2667
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
Conversation
… in HotkeyControlDialog, and implement the ability to overwrite them
# Conflicts: # Flow.Launcher/SettingWindow.xaml
|
Functionally perfect. If taooceros checks the code and there's nothing wrong, let's merge. Thank you for your hard work |
| /// An action that, when called, will unregister this hotkey. If it's <c>null</c>, it's assumed that this hotkey | ||
| /// can't be unregistered, and the "Overwrite" option will not appear in the hotkey dialog. | ||
| /// </param> | ||
| public RegisteredHotkeyData( |
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.
maybe you can use variable argument?
| new($"{OpenResultModifiers}+D0", "HotkeyOpenResultN", 10) | ||
| }; | ||
|
|
||
| if(!string.IsNullOrEmpty(Hotkey)) |
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.
oh my god this seems terrible lol. I don't know whether there are better way to handle this....
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.
maybe at least split it to another function.
What's the PR
Now that users have the ability to customize many hotkeys in Flow Launcher, we should prevent them from accidentally using the same hotkey for multiple actions.
Todo
Flow.Launcher.Infrastructure.UserSettings.SettingsThings to consider
Maybe offer the ability to remove the other hotkey directly from the hotkey change dialog?Done.