gpui: Refactor PlatformKeyboardLayout (#29653)

Release Notes:

- N/A
This commit is contained in:
张小白 2025-04-30 16:17:26 +08:00 committed by GitHub
parent edda386827
commit 074b6965e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 131 additions and 106 deletions

View file

@ -858,26 +858,6 @@ impl crate::Modifiers {
}
}
pub(crate) struct LinuxKeyboardLayout {
id: String,
}
impl PlatformKeyboardLayout for LinuxKeyboardLayout {
fn id(&self) -> &str {
&self.id
}
fn name(&self) -> &str {
&self.id
}
}
impl LinuxKeyboardLayout {
pub(crate) fn new(id: String) -> Self {
Self { id }
}
}
#[cfg(test)]
mod tests {
use super::*;