parent
edda386827
commit
074b6965e2
11 changed files with 131 additions and 106 deletions
7
crates/gpui/src/platform/keyboard.rs
Normal file
7
crates/gpui/src/platform/keyboard.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
/// A trait for platform-specific keyboard layouts
|
||||
pub trait PlatformKeyboardLayout {
|
||||
/// Get the keyboard layout ID, which should be unique to the layout
|
||||
fn id(&self) -> &str;
|
||||
/// Get the keyboard layout display name
|
||||
fn name(&self) -> &str;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue