Commit Graph

12 Commits

Author SHA1 Message Date
rich2014
8f49ff3eaa Cocoa: fix the issue with abnormal parameters passed into Lookup Word from macOS 2024-09-03 21:30:54 +08:00
rich2014
d59051c6f5 Cocoa: improve Lookup Word in TCocoaFullControlEdit.attributedSubstringForProposedRange_actualRange() 2024-08-29 23:52:44 +08:00
rich2014
a534b967a0 Cocoa: fix the issue that Lookup Word cannot be enabled when the first line is empty
macOS will try to get the first character(localtion=0).

previously, FullControlEdit returned the first character of the first line.

so if the first line is empty, an empty string will be returned, and macOS will think that there are no characters after it.
2024-08-29 20:23:20 +08:00
rich2014
ce91d6cb54 Cocoa: improve init in TCocoaFullControlEdit 2024-08-29 00:42:22 +08:00
rich2014
cc0dddeb08 Cocoa: improve in attributedSubstringForProposedRange_actualRange() 2024-08-28 21:56:07 +08:00
rich2014
c2d8e5ef9b SynEdit & Cocoa: improve the handling of Lookup Word when the cursor is not on the text 2024-08-27 22:01:28 +08:00
rich2014
0715fcb1c7 Cocoa: LookupWord handler enabled in TCocoaWSCustomControl.CreateHandle() 2024-08-27 22:01:27 +08:00
rich2014
cfbd95b451 Cocoa: LookupWord implemented in FullControlEdit 2024-08-27 22:01:27 +08:00
rich2014
6153ab067b Cocoa: ICocoaLookupWord/TCocoaLWParameters added for LookupWord 2024-08-27 22:01:27 +08:00
rich2014
224719b67b Cocoa: split BaseInputClient responsibility from TCocoaCustomControl into TCocoaCustomControlWithBaseInputClient 2024-08-23 00:33:23 +08:00
rich2014
f484dd2af3 Cocoa: decouple CocoaCustomControl from CocoaPrivate unit to CocoaCustomControl unit 2024-08-23 00:32:37 +08:00
rich2014
fea0f147a1 Cocoa/FullEdit: decouple FullEditControl/IME from CocoaPrivate unit to CocoaFullEditControl unit 2024-08-23 00:32:00 +08:00