Skip to content

Commit

Permalink
feat(common): scancode fixes for ks and jis 🙀
Browse files Browse the repository at this point in the history
- use vkey k.K_oE2 for 0x7D in KS and JIS keyboards

For: #9403
  • Loading branch information
srl295 committed Sep 25, 2023
1 parent 8774651 commit 2c588ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/web/types/src/consts/virtual-key-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const USVirtualKeyMap: KeyMap = [

export const KSVirtualKeyMap: KeyMap = [
// ` 1 2 3 4 5 6 7 8 9 0 - = YEN [bksp]
[ k.K_BKQUOTE, k.K_1, k.K_2, k.K_3, k.K_4, k.K_5, k.K_6, k.K_7, k.K_8, k.K_9, k.K_0, k.K_HYPHEN, k.K_EQUAL, k.K_BKSLASH /* YEN */ ],
[ k.K_BKQUOTE, k.K_1, k.K_2, k.K_3, k.K_4, k.K_5, k.K_6, k.K_7, k.K_8, k.K_9, k.K_0, k.K_HYPHEN, k.K_EQUAL, k.K_oE2 /* YEN */ ],
// [tab] Q W E R T Y U I O P [ ] \
[ k.K_Q, k.K_W, k.K_E, k.K_R, k.K_T, k.K_Y, k.K_U, k.K_I, k.K_O, k.K_P, k.K_LBRKT, k.K_RBRKT, k.k_oC1 ],
// [caps] A S D F G H J K L ; ' [enter]
Expand All @@ -187,7 +187,7 @@ export const ISOVirtualKeyMap: KeyMap = [

export const JISVirtualKeyMap: KeyMap = [
// [Hankaku/Zenkaku] 1 2 3 4 5 6 7 8 9 0 - ^ ¥ [bksp]
[ k.K_BKQUOTE, k.K_1, k.K_2, k.K_3, k.K_4, k.K_5, k.K_6, k.K_7, k.K_8, k.K_9, k.K_0, k.K_HYPHEN, k.K_EQUAL, k.K_BKSLASH /* YEN */ ],
[ k.K_BKQUOTE, k.K_1, k.K_2, k.K_3, k.K_4, k.K_5, k.K_6, k.K_7, k.K_8, k.K_9, k.K_0, k.K_HYPHEN, k.K_EQUAL, k.K_oE2 /* YEN */ ],
// [tab] Q W E R T Y U I O P @ [ [enter]
[ k.K_Q, k.K_W, k.K_E, k.K_R, k.K_T, k.K_Y, k.K_U, k.K_I, k.K_O, k.K_P, k.K_BKQUOTE, k.K_LBRKT ],
// [caps] A S D F G H J K L ; : ] [enter]
Expand Down

0 comments on commit 2c588ed

Please sign in to comment.