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

Function keyboard_key_label

src/controls.rs:464–470  ·  view source on GitHub ↗
(key: &keyboard::Key)

Source from the content-addressed store, hash-verified

462}
463
464fn keyboard_key_label(key: &keyboard::Key) -> String {
465 match key {
466 keyboard::Key::Named(named) => format!("{named:?}"),
467 keyboard::Key::Character(character) => character.to_string(),
468 keyboard::Key::Unidentified => "Unidentified".to_owned(),
469 }
470}
471
472fn drag_action_label(action: DragAction) -> &'static str {
473 match action {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected