Skip to content

Commit

Permalink
Allows ctrl key in ChromeOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
zonble committed Mar 3, 2024
1 parent 99d2ec2 commit 82b00be
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 32 deletions.
185 changes: 161 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
"@types/jest": "^28.1.6",
"@types/lodash": "^4.14.202",
"@types/node": "^20.11.20",
"@typescript-eslint/parser": "^7.1.0",
"@typescript-eslint/parser": "^7.0.2",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"eslint": "^8.57.0",
"eslint-plugin-typescript": "^0.14.0",
"jest": "^28.1.3",
"minimatch": ">=9.0.3",
"nodemon": "^3.1.0",
Expand Down
7 changes: 1 addition & 6 deletions src/chromeos_ime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,12 +491,7 @@ chrome.input.ime.onKeyEvent.addListener((engineID, keyData) => {
chromeMcBopomofo.isShiftHold = keyData.key === "Shift";
}

if (
keyData.altKey ||
keyData.ctrlKey ||
keyData.altgrKey ||
keyData.capsLock
) {
if (keyData.altKey || keyData.altgrKey || keyData.capsLock) {
return false;
}

Expand Down

0 comments on commit 82b00be

Please sign in to comment.