Skip to content

Commit 638fbab

Browse files
authored
Upgrade xkbcommon. (#159)
1 parent a9ec2e2 commit 638fbab

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
@@ -95,8 +95,9 @@ impl Keyboard {
9595
}
9696

9797
fn get_key_utf8(&self, keycode: u32) -> Option<String> {
98+
let keycode = xkb::Keycode::from(keycode);
9899
let keysym = self.state.key_get_one_sym(keycode);
99-
if keysym == xkb::KEY_NoSymbol {
100+
if keysym == xkb::keysyms::KEY_NoSymbol.into() {
100101
return None;
101102
}
102103
let utf8 = self.state.key_get_utf8(keycode);

0 commit comments

Comments
 (0)