Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Durdin <[email protected]>
  • Loading branch information
darcywong00 and mcdurdin authored Nov 6, 2023
1 parent 699e1f3 commit 5902c76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function CheckKey(
// Keyman versions before 14 do not support '*special*' labels on non-special keys.
// ZWNJ use, however, is safe because it will be transformed in function
// TransformSpecialKeys14 to '<|>', which does not require the custom OSK font.
const mapVersion = (fk.fileVersion > CSpecialTextMaxVer ? CSpecialTextMaxVer : fk.fileVersion < CSpecialTextMinVer ? CSpecialTextMinVer : fk.fileVersion);
const mapVersion = Math.max(Math.min(fk.fileVersion, CSpecialTextMaxVer), CSpecialTextMinVer);
const specialText = CSpecialText.get(mapVersion);
if(specialText.includes(FText) &&
!IsKeyboardVersion14OrLater() &&
Expand Down

0 comments on commit 5902c76

Please sign in to comment.