Skip to content

Commit 26f13fd

Browse files
committed
Upgrade xkbcommon.
1 parent 474a7fb commit 26f13fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ epoll = {version = "4.1.0", optional=true}
4040
inotify = {version = "0.11", default-features=false, optional=true}
4141
input = {version = "0.9", optional=true}
4242
input-linux = { version = "0.7.1", optional = true }
43-
xkbcommon = { version = "0.5.0", optional = true }
43+
xkbcommon = { version = "0.8", optional = true }
4444

4545
[target.'cfg(target_os = "windows")'.dependencies]
4646
winapi = { version = "0.3", features = ["winuser", "errhandlingapi", "processthreadsapi"] }

src/linux/wayland/keyboard.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ impl Keyboard {
9292
}
9393

9494
fn get_key_utf8(&self, keycode: u32) -> Option<String> {
95+
let keycode = xkb::Keycode::from(keycode);
9596
let keysym = self.state.key_get_one_sym(keycode);
96-
if keysym == xkb::KEY_NoSymbol {
97+
if keysym == xkb::keysyms::KEY_NoSymbol.into() {
9798
return None;
9899
}
99100
let utf8 = self.state.key_get_utf8(keycode);

0 commit comments

Comments
 (0)