InputHandler // Console log if alternative symbol menu is empty.

This commit is contained in:
ShikiSuen 2022-10-29 17:32:18 +08:00
parent 7fd63a1707
commit 8b20b76689
7 changed files with 17 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import Cocoa
// IMEState
public protocol IMEStateProtocol {
var type: StateType { get }
var data: IMEStateDataProtocol { get }
var data: IMEStateDataProtocol { get set }
var isASCIIMode: Bool { get set }
var isVerticalTyping: Bool { get set }
var isVerticalCandidateWindow: Bool { get set }

View File

@ -207,6 +207,17 @@ extension InputHandler {
delegate.callError("17446655")
}
return true
} else {
let errorMessage =
NSLocalizedString(
"Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key.",
comment: ""
)
vCLog("8EB3FB1A: " + errorMessage)
delegate.switchState(IMEState.ofEmpty())
let isJIS: Bool = input.keyCode == KeyCode.kSymbolMenuPhysicalKeyJIS.rawValue
delegate.switchState(IMEState.ofCommitting(textToCommit: isJIS ? "_" : "`"))
return true
}
} else {
// commit buffer ESC

View File

@ -1,4 +1,5 @@
"vChewing" = "vChewing";
"Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key.";
"Wildcard key cannot be the initial key." = "Wildcard key cannot be the initial key.";
"CIN Cassette Mode" = "CIN Cassette Mode";
"Invalid Selection Keys." = "Invalid Selection Keys.";

View File

@ -1,4 +1,5 @@
"vChewing" = "vChewing";
"Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key.";
"Wildcard key cannot be the initial key." = "Wildcard key cannot be the initial key.";
"CIN Cassette Mode" = "CIN Cassette Mode";
"Invalid Selection Keys." = "Invalid Selection Keys.";

View File

@ -1,4 +1,5 @@
"vChewing" = "威注音入力アプリ";
"Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "このメニューのお用いには、ご自分でユーザー辞書で\n「_punctuation_list」キーの符号記録のご補充が必要でござる。";
"Wildcard key cannot be the initial key." = "骨牌キーは最初のキーとしてはならぬ。";
"CIN Cassette Mode" = "CIN カセットモード";
"Invalid Selection Keys." = "候補用キーによる不具合。";

View File

@ -1,4 +1,5 @@
"vChewing" = "威注音输入法";
"Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "请自行以「_punctuation_list」索引键\n在使用者自订语汇档案内扩充该符号选单的内容。";"Wildcard key cannot be the initial key." = "花牌键不得作为起始码。";
"Wildcard key cannot be the initial key." = "花牌键不得作为起始码。";
"CIN Cassette Mode" = "CIN 磁带模式";
"Invalid Selection Keys." = "选字键参数资料值不规范。";

View File

@ -1,4 +1,5 @@
"vChewing" = "威注音輸入法";
"Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "請自行以「_punctuation_list」索引鍵\n在使用者自訂語彙檔案內擴充該符號選單的內容。";
"Wildcard key cannot be the initial key." = "花牌鍵不得作為起始碼。";
"CIN Cassette Mode" = "CIN 磁帶模式";
"Invalid Selection Keys." = "選字鍵參數資料值不規範。";