IMEs to use system layout

This commit is contained in:
galister
2025-12-15 16:53:21 +09:00
parent 1077d2606d
commit a0c9275b44
3 changed files with 74 additions and 42 deletions

View File

@@ -584,6 +584,10 @@ impl XkbKeymap {
.map(|inner| XkbKeymap { inner })
}
pub fn get_name(&self) -> Option<&str> {
self.inner.layouts().next()
}
pub fn label_for_key(&self, key: VirtualKey, modifier: KeyModifier) -> String {
let mut state = xkb::State::new(&self.inner);
if modifier > 0