#2874 on steroids Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [ ] Done a self-review taking into account security and performance aspects - [ ] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --------- Co-authored-by: Eric Holk <eric@zed.dev>
23 lines
408 B
Rust
23 lines
408 B
Rust
use gpui::{PlatformKeyboardLayout, SharedString};
|
|
|
|
#[derive(Clone)]
|
|
pub(crate) struct LinuxKeyboardLayout {
|
|
name: SharedString,
|
|
}
|
|
|
|
impl PlatformKeyboardLayout for LinuxKeyboardLayout {
|
|
fn id(&self) -> &str {
|
|
&self.name
|
|
}
|
|
|
|
fn name(&self) -> &str {
|
|
&self.name
|
|
}
|
|
}
|
|
|
|
impl LinuxKeyboardLayout {
|
|
pub(crate) fn new(name: SharedString) -> Self {
|
|
Self { name }
|
|
}
|
|
}
|