Function rs::keyboard::generate_keycodes
source · [−]pub fn generate_keycodes<'a, C: IntoIterator<Item = String>>(
key_names: C
) -> HashMap<String, KeyCode>
Expand description
Generates a mapping where each key gets a keycode, starting from 8
HACK: starting from 9, because 8 results in keycode 0,
which the compositor likes to discard