Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
feat(windows): support the space key in accel_table!
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed May 19, 2020
1 parent eea0ee4 commit ce00c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcw3/pal/macro/src/accel/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn gen_key_binding<'a>(

let vk = match pat.key {
// `WinUser.h`
Key::Char(c @ 'a'..='z') | Key::Char(c @ '0'..='9') => {
Key::Char(c @ 'a'..='z') | Key::Char(c @ '0'..='9') | Key::Char(c @ ' ') => {
let val = c.to_ascii_uppercase() as u32;
let val: u16 = val.try_into().unwrap();
quote::quote! { #val }
Expand Down

0 comments on commit ce00c5e

Please sign in to comment.