@@ -72,10 +72,7 @@ function updateUI(): void {
7272 if ( Config . keymapMode === "next" && Config . mode !== "zen" ) {
7373 if ( ! Config . language . startsWith ( "korean" ) ) {
7474 void KeymapEvent . highlight (
75- TestWords . words
76- . getCurrent ( )
77- . charAt ( TestInput . input . current . length )
78- . toString ( )
75+ TestWords . words . getCurrent ( ) . charAt ( TestInput . input . current . length )
7976 ) ;
8077 } else {
8178 //word [가다]
@@ -1194,10 +1191,7 @@ $(document).on("keydown", async (event) => {
11941191
11951192 if (
11961193 Config . layout !== "default" &&
1197- ! (
1198- event . ctrlKey ||
1199- ( event . altKey && window . navigator . platform . search ( "Linux" ) > - 1 )
1200- )
1194+ ! ( event . ctrlKey || ( event . altKey && Misc . isLinux ( ) ) )
12011195 ) {
12021196 const char : string | null = await LayoutEmulator . getCharFromEvent ( event ) ;
12031197 if ( char !== null ) {
@@ -1217,6 +1211,8 @@ $("#wordsInput").on("keydown", (event) => {
12171211 "spacing debug keydown STOPPED - repeat" ,
12181212 event . key ,
12191213 event . code ,
1214+ //ignore for logging
1215+ // eslint-disable-next-line @typescript-eslint/no-deprecated
12201216 event . which
12211217 ) ;
12221218 return ;
@@ -1236,7 +1232,7 @@ $("#wordsInput").on("keydown", (event) => {
12361232 const now = performance . now ( ) ;
12371233 setTimeout ( ( ) => {
12381234 const eventCode =
1239- event . code === "" || event . which === 231 ? "NoCode" : event . code ;
1235+ event . code === "" || event . key === "Unidentified" ? "NoCode" : event . code ;
12401236 TestInput . recordKeydownTime ( now , eventCode ) ;
12411237 } , 0 ) ;
12421238} ) ;
@@ -1247,6 +1243,8 @@ $("#wordsInput").on("keyup", (event) => {
12471243 "spacing debug keydown STOPPED - repeat" ,
12481244 event . key ,
12491245 event . code ,
1246+ //ignore for logging
1247+ // eslint-disable-next-line @typescript-eslint/no-deprecated
12501248 event . which
12511249 ) ;
12521250 return ;
@@ -1265,7 +1263,7 @@ $("#wordsInput").on("keyup", (event) => {
12651263 const now = performance . now ( ) ;
12661264 setTimeout ( ( ) => {
12671265 const eventCode =
1268- event . code === "" || event . which === 231 ? "NoCode" : event . code ;
1266+ event . code === "" || event . key === "Unidentified" ? "NoCode" : event . code ;
12691267 TestInput . recordKeyupTime ( now , eventCode ) ;
12701268 } , 0 ) ;
12711269} ) ;
0 commit comments