MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / key_is_bound

Method key_is_bound

src/controls.rs:246–248  ·  view source on GitHub ↗

Return whether a key trigger is bound to an action.

(&self, key: &keyboard::Key, action: KeyAction)

Source from the content-addressed store, hash-verified

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.

Callers 1

key_enabledMethod · 0.80

Calls 1

key_actionMethod · 0.80

Tested by

no test coverage detected