Remove catch all keymap and KeyPressed action

This commit is contained in:
Kay Simmons 2023-02-10 16:09:15 -08:00
parent 459060764a
commit 327932ba3b
4 changed files with 14 additions and 45 deletions

View file

@ -65,7 +65,7 @@ impl CommandPalette {
action,
keystrokes: bindings
.iter()
.filter_map(|binding| binding.keystrokes())
.map(|binding| binding.keystrokes())
.last()
.map_or(Vec::new(), |keystrokes| keystrokes.to_vec()),
})