Skip to content

Commit

Permalink
WIP keycode offset
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Sep 17, 2024
1 parent 2a35003 commit 18b25dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wayland/handlers/atspi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ impl AtspiHandler for State {
tracing::error!("add_key_grab: {:?}", (mods, &virtual_mods, key));
let grab = AtspiKeyGrab {
mods,
virtual_mods: virtual_mods.into_iter().map(|x| x.into()).collect(),
key: key.into(),
virtual_mods: virtual_mods.into_iter().map(|x| (x + 8).into()).collect(),
key: (key + 8).into(),
};
self.common.atspi_ei.key_grabs.push(grab);
}
Expand All @@ -112,8 +112,8 @@ impl AtspiHandler for State {
tracing::error!("remove_key_grab: {:?}", (mods, &virtual_mods, key));
let grab = AtspiKeyGrab {
mods,
virtual_mods: virtual_mods.into_iter().map(|x| x.into()).collect(),
key: key.into(),
virtual_mods: virtual_mods.into_iter().map(|x| (x + 8).into()).collect(),
key: (key + 8).into(),
};
if let Some(idx) = self
.common
Expand Down

0 comments on commit 18b25dc

Please sign in to comment.