Set the key used for a key action. Passing `None` disables the key action.
(&mut self, action: KeyAction, key: Option<keyboard::Key>)
| 302 | /// |
| 303 | /// Passing `None` disables the key action. |
| 304 | pub fn set_key_action(&mut self, action: KeyAction, key: Option<keyboard::Key>) -> &mut Self { |
| 305 | self.remove_key_action(action); |
| 306 | if let Some(key) = key { |
| 307 | self.bind_key(key, action); |
| 308 | } |
| 309 | self |
| 310 | } |
| 311 | |
| 312 | /// Bind the four arrow keys to pan by the given fraction of the visible span. |
| 313 | pub fn bind_arrow_pan(&mut self, fraction: f64) -> &mut Self { |
nothing calls this directly
no test coverage detected