Constructors
Accessors
Methods
keyEvent
- keyEvent(event): boolean
Returns boolean
If the key is handled.
mcbopomofoKeyEvent
- mcbopomofoKeyEvent(key): boolean
Returns boolean
reset
- reset(): void
Returns void
setCandidateKeys
- setCandidateKeys(keys): void
Returns void
setCandidateKeysCount
- setCandidateKeysCount(count): void
Returns void
setChineseConversionEnabled
- setChineseConversionEnabled(flag): void
Returns void
setCtrlEnterOption
- setCtrlEnterOption(option): void
Returns void
setEscClearEntireBuffer
- setEscClearEntireBuffer(flag): void
Returns void
setHalfWidthPunctuationEnabled
- setHalfWidthPunctuationEnabled(enabled): void
Returns void
setKeyboardLayout
- setKeyboardLayout(layout): void
Returns void
setLanguageCode
- setLanguageCode(languageCode): void
Returns void
setLetterMode
- setLetterMode(letterCase): void
Returns void
setMoveCursorAfterSelection
- setMoveCursorAfterSelection(flag): void
Returns void
setOnError
- setOnError(onError): void
Returns void
setOnOpenUrl
- setOnOpenUrl(input): void
Parameters
- input: undefined | ((input: string) => void)
Returns void
setOnPhraseAdded
- setOnPhraseAdded(callback): void
Parameters
- callback: ((key: string, phrase: string) => void)
- (key, phrase): void
Parameters
- key: string
- phrase: string
Returns void
Returns void
setOnPhraseChange
- setOnPhraseChange(callback): void
Parameters
- callback: ((map: Map<string, string[]>) => void)
- (map): void
Parameters
- map: Map<string, string[]>
Returns void
Returns void
setSelectPhrase
- setSelectPhrase(option): void
Returns void
setTraditionalMode
- setTraditionalMode(flag): void
Returns void
setUI
- setUI(ui): void
Returns void
setUseJKToMoveCursor
- setUseJKToMoveCursor(flag): void
Returns void
setUserPhrases
- setUserPhrases(input): void
Parameters
- input: string | Map<string, string[]>
Returns void
setUserVerticalCandidates
- setUserVerticalCandidates(flag): void
Returns void
The major class that receives the keyboard events and stores the input method state. It is also the only class exported from the module.