Remove all key bindings for a given action.
(&mut self, action: KeyAction)
| 294 | |
| 295 | /// Remove all key bindings for a given action. |
| 296 | pub fn remove_key_action(&mut self, action: KeyAction) -> &mut Self { |
| 297 | self.key.retain(|_, bound| *bound != action); |
| 298 | self |
| 299 | } |
| 300 | |
| 301 | /// Set the key used for a key action. |
| 302 | /// |