Return whether a key trigger is bound to an action.
(&self, key: &keyboard::Key, action: KeyAction)
| 244 | |
| 245 | /// Return whether a key trigger is bound to an action. |
| 246 | pub fn key_is_bound(&self, key: &keyboard::Key, action: KeyAction) -> bool { |
| 247 | self.key_action(key) == Some(action) |
| 248 | } |
| 249 | |
| 250 | /// Return the minimum drag distance, in screen pixels, required before a |
| 251 | /// press is treated as a drag instead of a click. |