Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from fredizzimo/fsundvik/fix-key-repeat
Browse files Browse the repository at this point in the history
Fix repeat issue
  • Loading branch information
fredizzimo authored Apr 30, 2023
2 parents 4a566b7 + bffc8d8 commit 4d8d82f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform_impl/linux/wayland/seat/keyboard/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,15 +541,16 @@ impl KbdHandler {
_ => unreachable!(),
};

let mut ker = state.process_key_event(key + 8, key_state);
let keycode = key + 8;
let mut ker = state.process_key_event(keycode, key_state);

let physical_key = ker.keycode();
let (logical_key, location) = ker.key();
let text = ker.text();
let (key_without_modifiers, _) = ker.key_without_modifiers();
let text_with_all_modifiers = ker.text_with_all_modifiers();

let repeats = unsafe { state.key_repeats(key) };
let repeats = unsafe { state.key_repeats(keycode) };

(
physical_key,
Expand Down

0 comments on commit 4d8d82f

Please sign in to comment.