Skip to content

Commit

Permalink
Fix handling of key 102d
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroo committed Jul 7, 2022
1 parent 93ee30e commit 4e20b9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/keys/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ impl From<KeyCode> for OsCode {
KeyCode::F24 => OsCode::KEY_F24,
KeyCode::Lang1 => OsCode::KEY_HANGEUL,
KeyCode::Lang2 => OsCode::KEY_HANJA,
KeyCode::NonUsBslash => OsCode::KEY_102ND,
KeyCode::PScreen => OsCode::KEY_PRINT,
KeyCode::AltErase => OsCode::KEY_ALTERASE,
KeyCode::Cancel => OsCode::KEY_CANCEL,
Expand Down Expand Up @@ -1460,6 +1461,7 @@ impl From<OsCode> for KeyCode {
OsCode::KEY_F24 => KeyCode::F24,
OsCode::KEY_HANGEUL => KeyCode::Lang1,
OsCode::KEY_HANJA => KeyCode::Lang2,
OsCode::KEY_102ND => KeyCode::NonUsBslash,
OsCode::KEY_PRINT => KeyCode::PScreen,
OsCode::KEY_ALTERASE => KeyCode::AltErase,
OsCode::KEY_CANCEL => KeyCode::Cancel,
Expand Down
4 changes: 4 additions & 0 deletions src/keys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ impl OsCode {
VK_F24 => Some(OsCode::KEY_F24),
VK_HANGEUL => Some(OsCode::KEY_HANGEUL),
VK_HANJA => Some(OsCode::KEY_HANJA),
VK_OEM_102 => Some(OsCode::KEY_102ND),
VK_PLAY => Some(OsCode::KEY_PLAY),
VK_PRINT => Some(OsCode::KEY_PRINT),
VK_BROWSER_SEARCH => Some(OsCode::KEY_SEARCH),
Expand Down Expand Up @@ -1020,6 +1021,7 @@ impl OsCode {
OsCode::KEY_F24 => VK_F24,
OsCode::KEY_HANGEUL => VK_HANGEUL,
OsCode::KEY_HANJA => VK_HANJA,
OsCode::KEY_102ND => VK_OEM_102,
OsCode::KEY_PLAY => VK_PLAY,
OsCode::KEY_PRINT => VK_PRINT,
OsCode::KEY_SEARCH => VK_BROWSER_SEARCH,
Expand Down Expand Up @@ -1207,6 +1209,7 @@ impl From<KeyCode> for OsCode {
KeyCode::F24 => OsCode::KEY_F24,
KeyCode::Lang1 => OsCode::KEY_HANGEUL,
KeyCode::Lang2 => OsCode::KEY_HANJA,
KeyCode::NonUsBslash => OsCode::KEY_102ND,
KeyCode::PScreen => OsCode::KEY_PRINT,
KeyCode::AltErase => OsCode::KEY_ALTERASE,
KeyCode::Cancel => OsCode::KEY_CANCEL,
Expand Down Expand Up @@ -1372,6 +1375,7 @@ impl From<OsCode> for KeyCode {
OsCode::KEY_F24 => KeyCode::F24,
OsCode::KEY_HANGEUL => KeyCode::Lang1,
OsCode::KEY_HANJA => KeyCode::Lang2,
OsCode::KEY_102ND => KeyCode::NonUsBslash,
OsCode::KEY_PRINT => KeyCode::PScreen,
OsCode::KEY_ALTERASE => KeyCode::AltErase,
OsCode::KEY_CANCEL => KeyCode::Cancel,
Expand Down

0 comments on commit 4e20b9b

Please sign in to comment.