Repo // Comment updates.

This commit is contained in:
ShikiSuen 2022-10-22 11:27:09 +08:00
parent 9d51781eda
commit d5fbcf5e2c
8 changed files with 13 additions and 11 deletions

View File

@ -15,7 +15,7 @@ extension vChewingLM {
/// LangModelProtocol 使 /// LangModelProtocol 使
/// ///
/// ///
/// LMI 調 /// LMI 調
/// LMI /// LMI
/// ///
/// ///

View File

@ -11,7 +11,7 @@ import Megrez
import Shared import Shared
import Tekkon import Tekkon
/// 調 /// 調
/// Megrez Tekkon /// Megrez Tekkon
/// composer compositor /// composer compositor
@ -48,7 +48,7 @@ public protocol InputHandlerDelegate {
// MARK: - (Kernel). // MARK: - (Kernel).
/// InputHandler 調 /// InputHandler 調
public class InputHandler: InputHandlerProtocol { public class InputHandler: InputHandlerProtocol {
/// (SessionCtl)便 /// (SessionCtl)便
public var delegate: InputHandlerDelegate? public var delegate: InputHandlerDelegate?

View File

@ -6,7 +6,7 @@
// marks, or product names of Contributor, except as required to fulfill notice // marks, or product names of Contributor, except as required to fulfill notice
// requirements defined in MIT License. // requirements defined in MIT License.
/// 調 /// 調
import CandidateWindow import CandidateWindow
import CocoaExtension import CocoaExtension

View File

@ -6,7 +6,7 @@
// marks, or product names of Contributor, except as required to fulfill notice // marks, or product names of Contributor, except as required to fulfill notice
// requirements defined in MIT License. // requirements defined in MIT License.
/// 調 NSEvent /// 調 NSEvent
import InputMethodKit import InputMethodKit
import Shared import Shared

View File

@ -6,8 +6,8 @@
// marks, or product names of Contributor, except as required to fulfill notice // marks, or product names of Contributor, except as required to fulfill notice
// requirements defined in MIT License. // requirements defined in MIT License.
/// 調 IMK 調 /// 調 IMK 調
/// 調 /// 調
import CocoaExtension import CocoaExtension
import IMKUtils import IMKUtils

View File

@ -6,7 +6,7 @@
// marks, or product names of Contributor, except as required to fulfill notice // marks, or product names of Contributor, except as required to fulfill notice
// requirements defined in MIT License. // requirements defined in MIT License.
/// 調調 /// 調調
import Megrez import Megrez
import Shared import Shared

View File

@ -61,7 +61,7 @@ public class SessionCtl: IMKInputController {
} }
} }
/// 調 /// 調
var inputHandler: InputHandlerProtocol = InputHandler( var inputHandler: InputHandlerProtocol = InputHandler(
lm: LMMgr.currentLM(), uom: LMMgr.currentUOM(), pref: PrefMgr.shared lm: LMMgr.currentLM(), uom: LMMgr.currentUOM(), pref: PrefMgr.shared
) )
@ -165,7 +165,7 @@ extension SessionCtl {
} }
} }
/// 調 /// 調
public func resetInputHandler() { public func resetInputHandler() {
// //
if state.type == .ofInputting, PrefMgr.shared.trimUnfinishedReadingsOnCommit { if state.type == .ofInputting, PrefMgr.shared.trimUnfinishedReadingsOnCommit {

View File

@ -34,7 +34,9 @@ extension SessionCtl {
/// deactivateServer() 使 /// deactivateServer() 使
/// 使 SessionCtl /// 使 SessionCtl
/// ///
/// - Parameter newState: /// - Parameters:
/// - newState:
/// - replace:
public func handle(state newState: IMEStateProtocol, replace: Bool) { public func handle(state newState: IMEStateProtocol, replace: Bool) {
var previous = state var previous = state
if replace { state = newState } if replace { state = newState }