Skip to content

Commit

Permalink
Do not return removed commands (None) (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
arouene authored Jul 29, 2024
1 parent 7c10e1e commit 23c21cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify_player/src/config/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ impl KeymapConfig {
pub fn find_command_from_key_sequence(&self, key_sequence: &KeySequence) -> Option<Command> {
self.keymaps
.iter()
.find(|&keymap| keymap.key_sequence == *key_sequence)
.find(|&keymap| keymap.key_sequence == *key_sequence && keymap.command != Command::None)
.map(|keymap| keymap.command)
}

Expand Down

0 comments on commit 23c21cd

Please sign in to comment.