PlatformKeyboardMapper

Trait PlatformKeyboardMapper 

Source
pub trait PlatformKeyboardMapper {
    // Required methods
    fn map_key_equivalent(
        &self,
        keystroke: Keystroke,
        use_key_equivalents: bool,
    ) -> KeybindingKeystroke;
    fn get_key_equivalents(&self) -> Option<&HashMap<char, char>>;
}
Expand description

A trait for platform-specific keyboard mappings

Required Methods§

Source

fn map_key_equivalent( &self, keystroke: Keystroke, use_key_equivalents: bool, ) -> KeybindingKeystroke

Map a key equivalent to its platform-specific representation

Source

fn get_key_equivalents(&self) -> Option<&HashMap<char, char>>

Get the key equivalents for the current keyboard layout, only used on macOS

Implementors§