Skip to content

Commit

Permalink
feat: support more keycodes such as vk_oem_102 (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored May 16, 2024
1 parent da873c0 commit da60b38
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,18 @@ impl Hotkey {
"}" | "]" | "vk_oem_6" => 0xdd,
"\"" | "'" | "vk_oem_7" => 0xde,
"§" | "!" | "vk_oem_8" => 0xdf,
"vk_oem_102" => 0xe2,
"vk_processkey" => 0xe5,
"vk_packet" => 0xe7,
"vk_attn" => 0xf6,
"vk_crsel" => 0xf7,
"vk_exsel" => 0xf8,
"vk_ereof" => 0xf9,
"vk_play" => 0xfa,
"vk_zoom" => 0xfb,
"vk_noname" => 0xfc,
"vk_pa1" => 0xfd,
"vk_oem_clear" => 0xfe,
_ => return None,
};
Some((modifier, code))
Expand Down

0 comments on commit da60b38

Please sign in to comment.