KeyConv // Stop Converting Previous SymbolMenu CharCodes.
This commit is contained in:
parent
16620c6e28
commit
eac018c46b
|
@ -34,9 +34,6 @@ import Cocoa
|
||||||
var charCode = charCode
|
var charCode = charCode
|
||||||
// 在按鍵資訊被送往 OVMandarin 之前,先轉換為可以被 OVMandarin 正常處理的資訊。
|
// 在按鍵資訊被送往 OVMandarin 之前,先轉換為可以被 OVMandarin 正常處理的資訊。
|
||||||
if self.isDynamicBaseKeyboardLayoutEnabled() {
|
if self.isDynamicBaseKeyboardLayoutEnabled() {
|
||||||
// 保證 Apple 大千佈局內的符號鍵正常工作。
|
|
||||||
if charCode == 45 && (Preferences.basisKeyboardLayout == "com.apple.keylayout.ZhuyinBopomofo") { charCode = UniChar(96) }
|
|
||||||
if charCode == 183 && (Preferences.basisKeyboardLayout == "com.apple.keylayout.ZhuyinEten") { charCode = UniChar(96) }
|
|
||||||
// 針對不同的 Apple 動態鍵盤佈局糾正大寫英文輸入。
|
// 針對不同的 Apple 動態鍵盤佈局糾正大寫英文輸入。
|
||||||
switch Preferences.basisKeyboardLayout {
|
switch Preferences.basisKeyboardLayout {
|
||||||
case "com.apple.keylayout.ZhuyinBopomofo": do {
|
case "com.apple.keylayout.ZhuyinBopomofo": do {
|
||||||
|
@ -173,9 +170,6 @@ import Cocoa
|
||||||
@objc class func cnvStringApple2ABC(_ strProcessed: String) -> String {
|
@objc class func cnvStringApple2ABC(_ strProcessed: String) -> String {
|
||||||
var strProcessed = strProcessed
|
var strProcessed = strProcessed
|
||||||
if self.isDynamicBaseKeyboardLayoutEnabled() {
|
if self.isDynamicBaseKeyboardLayoutEnabled() {
|
||||||
// 保證 Apple 大千佈局內的符號鍵正常工作。
|
|
||||||
if (strProcessed == "-" && Preferences.basisKeyboardLayout == "com.apple.keylayout.ZhuyinBopomofo") { strProcessed = "`" }
|
|
||||||
if (strProcessed == "·" && Preferences.basisKeyboardLayout == "com.apple.keylayout.ZhuyinEten") { strProcessed = "`" }
|
|
||||||
// 針對不同的 Apple 動態鍵盤佈局糾正大寫英文輸入。
|
// 針對不同的 Apple 動態鍵盤佈局糾正大寫英文輸入。
|
||||||
switch Preferences.basisKeyboardLayout {
|
switch Preferences.basisKeyboardLayout {
|
||||||
case "com.apple.keylayout.ZhuyinBopomofo": do {
|
case "com.apple.keylayout.ZhuyinBopomofo": do {
|
||||||
|
|
Loading…
Reference in New Issue