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

Method bind_key

src/controls.rs:230–233  ·  view source on GitHub ↗

Bind a key trigger to an action.

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

Source from the content-addressed store, hash-verified

228
229 /// Bind a key trigger to an action.
230 pub fn bind_key(&mut self, key: keyboard::Key, action: KeyAction) -> &mut Self {
231 self.key.insert(key, action);
232 self
233 }
234
235 /// Remove a key binding.
236 pub fn unbind_key(&mut self, key: &keyboard::Key) -> Option<KeyAction> {

Calls

no outgoing calls