forge
Explore
Log in

Don't you dare go Hollow

edith

Clone
★ 0

0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits

keyboard.rs22 lines, 409 bytesHistoryRawDownload
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}