keyboard.rs
1use crate::{PlatformKeyboardLayout, SharedString};
2
3#[derive(Clone)]
4pub(crate) struct LinuxKeyboardLayout {
5 name: SharedString,
6}
7
8impl PlatformKeyboardLayout for LinuxKeyboardLayout {
9 fn id(&self) -> &str {
10 &self.name
11 }
12
13 fn name(&self) -> &str {
14 &self.name
15 }
16}
17
18impl LinuxKeyboardLayout {
19 pub(crate) fn new(name: SharedString) -> Self {
20 Self { name }
21 }
22}