Skip to content

fix(shortcuts): improve key binding validity checks#43

Open
Triton171 wants to merge 1 commit intopop-os:masterfrom
Triton171:fix-keybinding-checks
Open

fix(shortcuts): improve key binding validity checks#43
Triton171 wants to merge 1 commit intopop-os:masterfrom
Triton171:fix-keybinding-checks

Conversation

@Triton171
Copy link

As far as I can tell, both these functions are only used by cosmic-settings which i tested without finding any new issues. If there's anything else I should test, let me know.

I also noticed that in cosmic-settings, the code that focuses any existing invalid keybinding when adding a new one calls Binding::from_str without then checking Binding::is_set for the parsed binding. This should probably also be replaced by Binding::from_str(&shortcut.input).map_or(false, |b| b.is_set()), unless I'm missing something.

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.

Keyboard > Shortcuts > System > Open the launcher should render default binding "Super"

1 participant