Commit Graph

43 Commits

Author SHA1 Message Date
ShikiSuen fc29b52f8f SessionCtl // Use selectionRange() and replacementRange(). 2023-06-06 00:47:02 +08:00
ShikiSuen b1f256ef05 SessionCtl // Use AttributeStrings generated by new methods. 2023-05-01 21:03:05 +08:00
ShikiSuen 421268e620 SessionCtl // Use hidePalettes() when needed. 2023-04-05 20:26:07 +08:00
ShikiSuen 0639e9e289 Revert "SessionCtl // Use GCD for certain state tasks."
This reverts commit 852eed07e2.
2023-04-05 20:26:07 +08:00
ShikiSuen 852eed07e2 SessionCtl // Use GCD for certain state tasks. 2023-03-23 21:17:43 +08:00
ShikiSuen 0423ce727c SessionCtl // Implement updatePopupDisplayWithCursor(). 2023-03-12 14:56:14 +08:00
ShikiSuen 87bc36aa9e Repo // Upgrade ClientListMgr to mk2. 2023-02-24 00:08:53 +08:00
ShikiSuen 3984cb79e4 SessionCtl // Simplify handing of NSRange parameters, etc. 2023-02-24 00:08:53 +08:00
ShikiSuen dc75148c8c SessionCtl // Don't commit() if .ofInputting() has nothing to commit. 2023-02-15 12:55:20 +08:00
ShikiSuen ba164520fc SessionCtl // Optimize commit(). 2023-02-11 13:07:59 +08:00
ShikiSuen 99275a4682 SessionCtl // Again clearInlineDisplay() on deactivation.
* Also optimize doSetMarkedText().
2023-02-11 13:07:59 +08:00
ShikiSuen 856c5d02d7 Clang-format // Use Google Swift Format Style. 2023-02-11 13:07:59 +08:00
ShikiSuen 5b117a4c3d SessionCtl // Force updateVerticalTypingStatus() when needed. 2022-12-30 10:52:51 +08:00
ShikiSuen 0e98eb0d2c SessionCtl // Add isServingIMEItself().
- Also monitoring activateServer() in console.
2022-12-17 15:14:22 +08:00
ShikiSuen 1fe0442042 SessionCtl // Bind the tooltip display duration property. 2022-12-17 15:14:22 +08:00
ShikiSuen b8d6a828ba SessionCtl // Nil the inputHandler for inactive sessions. 2022-12-17 15:14:22 +08:00
ShikiSuen 65462f4ad0 SessionCtl // Nil the candidateUI for inactive sessions.
- We don't nil the IMKCandidates on deinit() in order to avoid EXC_BAD_ACCESS error.
2022-12-17 15:14:22 +08:00
ShikiSuen 0b2a046885 SessionCtl // ctlCandidateCurrent -> candidateUI. 2022-12-17 15:14:22 +08:00
ShikiSuen 1057a3fe82 SessionCtl // Use an alternative way to keep IMKCandidates' visibility.
- We have no other way to solve the excessive-memory-usage problem without completely removing the instance container.
2022-12-17 15:14:22 +08:00
ShikiSuen 337cf84c8b SessionCtl // Use NSMutableOrderedSet in lieu of Swift.Set. 2022-12-17 15:14:22 +08:00
ShikiSuen 11edfbddfb SessionCtl // Do clearInlineDisplay() in commitComposition(). 2022-12-17 15:14:22 +08:00
ShikiSuen 8216497382 SessionCtl // Remove duplicated commissions on deactivation. 2022-12-17 15:14:22 +08:00
ShikiSuen 4d213f569b SessionCtl // Disable setMarkedText() on deactivateServer(). 2022-12-17 15:14:22 +08:00
ShikiSuen 47ab4867b1 Repo // Remove the useless .ofNotEmpty() state. 2022-12-17 15:14:21 +08:00
ShikiSuen 6fce25ed2c SessionCtl // Stop committing unwanted newlines. 2022-12-17 14:54:50 +08:00
ShikiSuen 78af4b72c2 SessionCtl // Add comments regarding upstream issue 346 and UPR347. 2022-12-17 14:54:49 +08:00
ShikiSuen d5fbcf5e2c Repo // Comment updates. 2022-12-17 14:54:49 +08:00
ShikiSuen 4e124e6aac Repo // Let tooltip window auto-disappear after given seconds. 2022-12-17 14:54:49 +08:00
ShikiSuen d1bd34ee43 SessionCtl // Show non-empty tooltip on .ofEmpty() state. 2022-12-17 14:54:49 +08:00
ShikiSuen 88b0726448 SessionCtl // Stop switching to certain states if not prompted to. 2022-12-17 14:54:49 +08:00
ShikiSuen 2cf53d5c6a SessionCtl // Optimize handlings of Committing() state. 2022-12-17 14:54:48 +08:00
ShikiSuen 36a83f25a2 InputHandler // Remove stateCallback(). 2022-12-17 14:54:48 +08:00
ShikiSuen 6168cc32d0 Repo // Massive nomenclature changes, etc. 2022-12-17 14:54:48 +08:00
ShikiSuen 458e7fa613 SessionCtl // Simplify handle(state). 2022-12-17 14:54:48 +08:00
ShikiSuen 0956e043fd SessionCtl // Add (Bool)replaceCurrent to handle(event). 2022-12-17 14:54:48 +08:00
ShikiSuen 0d79e83777 SessionCtl // Track and handle deactivated states correctly. 2022-12-17 14:54:48 +08:00
ShikiSuen 970174117e SessionCtl // Remove unnecessary nil setters for ctlCandidateCurrent. 2022-12-17 14:54:48 +08:00
ShikiSuen c95a55dc60 SessionCtl // Publicization. 2022-12-17 14:54:48 +08:00
ShikiSuen b43d4b8993 SessionCtl // Add warning comments towards handle(state). 2022-12-17 14:54:48 +08:00
ShikiSuen a144e20304 SessionCtl // Make PCB, tooltip, and candidate window instances dynamic. 2022-12-17 14:54:48 +08:00
ShikiSuen 32d35ad911 SessionCtl // Revamp certain client()-related operations. 2022-12-17 14:54:48 +08:00
ShikiSuen f75bafdd01 SessionCtl // Add caps lock notification support, etc. 2022-12-17 14:49:05 +08:00
ShikiSuen 216fe6e1ba Repo // "ctlInputMethod" -> "SessionCtl". 2022-12-17 14:49:05 +08:00