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, FxBuildHasher>>;
}Expand description
A trait for platform-specific keyboard mappings
Required Methods§
Sourcefn map_key_equivalent(
&self,
keystroke: Keystroke,
use_key_equivalents: bool,
) -> KeybindingKeystroke
fn map_key_equivalent( &self, keystroke: Keystroke, use_key_equivalents: bool, ) -> KeybindingKeystroke
Map a key equivalent to its platform-specific representation
Sourcefn get_key_equivalents(&self) -> Option<&HashMap<char, char, FxBuildHasher>>
fn get_key_equivalents(&self) -> Option<&HashMap<char, char, FxBuildHasher>>
Get the key equivalents for the current keyboard layout, only used on macOS
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".