Skip to content

Commit 1c082d5

Browse files
committed
fix win -> lin scancode translations for intl keys
1 parent cd98acb commit 1c082d5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/scancode.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -810,15 +810,15 @@ impl TryFrom<Windows> for Linux {
810810
Windows::KeyF23 => Ok(Self::KeyF23),
811811
Windows::KeyF24 => Ok(Self::KeyF24),
812812
Windows::KeypadComma => Ok(Self::KeyKpcomma),
813-
Windows::KeyInternational1 => Ok(Self::KeyHanguel),
814-
Windows::KeyInternational2 => Ok(Self::KeyHanja),
813+
Windows::KeyInternational1 => Ok(Self::KeyRo),
814+
Windows::KeyInternational2 => Ok(Self::KeyKatakanahiragana),
815815
Windows::KeyInternational3 => Ok(Self::KeyYen),
816-
Windows::KeyInternational4 => Err(()),
817-
Windows::KeyInternational5 => Err(()),
818-
Windows::KeyLANG1 => Ok(Self::KeyKatakana),
819-
Windows::KeyLANG2 => Ok(Self::KeyHiragana),
820-
Windows::KeyLANG3 => Ok(Self::KeyHenkan),
821-
Windows::KeyLANG4 => Ok(Self::KeyKatakanahiragana),
816+
Windows::KeyInternational4 => Ok(Self::KeyHenkan),
817+
Windows::KeyInternational5 => Ok(Self::KeyMuhenkan),
818+
Windows::KeyLANG1 => Ok(Self::KeyHanguel),
819+
Windows::KeyLANG2 => Ok(Self::KeyHanja),
820+
Windows::KeyLANG3 => Ok(Self::KeyKatakana),
821+
Windows::KeyLANG4 => Ok(Self::KeyHiragana),
822822
Windows::KeyLeftCtrl => Ok(Self::KeyLeftCtrl),
823823
Windows::KeyLeftShift => Ok(Self::KeyLeftShift),
824824
Windows::KeyLeftAlt => Ok(Self::KeyLeftAlt),

0 commit comments

Comments
 (0)