ctlIME // Move areWeUsingOurOwnPhraseEditor to IME module.
This commit is contained in:
parent
30e734d0fa
commit
3240ec1567
|
@ -1089,9 +1089,8 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
|
|||
return NO;
|
||||
|
||||
NSArray *readings = [self _currentReadings];
|
||||
NSString *composingBuffer = (ctlInputMethod.areWeUsingOurOwnPhraseEditor)
|
||||
? [readings componentsJoinedByString:@"-"]
|
||||
: [readings componentsJoinedByString:@" "];
|
||||
NSString *composingBuffer = (IME.areWeUsingOurOwnPhraseEditor) ? [readings componentsJoinedByString:@"-"]
|
||||
: [readings componentsJoinedByString:@" "];
|
||||
|
||||
[self clear];
|
||||
|
||||
|
|
|
@ -28,6 +28,9 @@ import Cocoa
|
|||
|
||||
static let dlgOpenPath = NSOpenPanel()
|
||||
|
||||
// MARK: - 開關判定當前應用究竟是?
|
||||
@objc static var areWeUsingOurOwnPhraseEditor: Bool = false
|
||||
|
||||
// MARK: - Print debug information to the console.
|
||||
@objc static func prtDebugIntel(_ strPrint: String) {
|
||||
if mgrPrefs.isDebugModeEnabled {
|
||||
|
|
|
@ -271,9 +271,9 @@ class ctlInputMethod: IMKInputController {
|
|||
if (client as? IMKTextInput)?.bundleIdentifier()
|
||||
== "org.atelierInmu.vChewing.vChewingPhraseEditor"
|
||||
{
|
||||
ctlInputMethod.areWeUsingOurOwnPhraseEditor = true
|
||||
IME.areWeUsingOurOwnPhraseEditor = true
|
||||
} else {
|
||||
ctlInputMethod.areWeUsingOurOwnPhraseEditor = false
|
||||
IME.areWeUsingOurOwnPhraseEditor = false
|
||||
}
|
||||
|
||||
let input = keyParser(event: event, isVerticalMode: useVerticalMode)
|
||||
|
@ -767,12 +767,6 @@ extension ctlInputMethod {
|
|||
}
|
||||
}
|
||||
|
||||
// MARK: - 開關判定當前應用究竟是?
|
||||
|
||||
@objc extension ctlInputMethod {
|
||||
@objc static var areWeUsingOurOwnPhraseEditor: Bool = false
|
||||
}
|
||||
|
||||
// MARK: -
|
||||
|
||||
extension ctlInputMethod: KeyHandlerDelegate {
|
||||
|
|
Loading…
Reference in New Issue