KeyConv // charCode 8212 -> 45.

This commit is contained in:
ShikiSuen 2022-03-26 21:41:12 +08:00
parent b37504254e
commit 39c86a4f63
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,8 @@ import Cocoa
if (charCode == 65290) {charCode = UniChar(42)}
if (charCode == 65288) {charCode = UniChar(40)}
if (charCode == 65289) {charCode = UniChar(41)}
// Alt
if (charCode == 8212) {charCode = UniChar(45)}
// Apple
if mgrPrefs.basisKeyboardLayout == "com.apple.keylayout.ZhuyinEten" {
if (charCode == 65343) {charCode = UniChar(95)}
@ -311,6 +313,8 @@ import Cocoa
if (strProcessed == "") {strProcessed = "*"}
if (strProcessed == "") {strProcessed = "("}
if (strProcessed == "") {strProcessed = ")"}
// Alt
if (strProcessed == "") {strProcessed = "-"}
// Apple
if mgrPrefs.basisKeyboardLayout == "com.apple.keylayout.ZhuyinEten" {
if (strProcessed == "_") {strProcessed = "_"}