mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 17:33:37 +00:00
winemac: Reposition cursor for IME composition.
It is more natural for the cursor to be at the end of the selection being composed instead of being at the beginning.
This commit is contained in:
parent
d3d4e3a9a9
commit
20daa8b61c
|
@ -431,7 +431,7 @@ - (void) setMarkedText:(id)string selectedRange:(NSRange)selectedRange replaceme
|
|||
event->im_set_text.data = [window imeData];
|
||||
event->im_set_text.text = (CFStringRef)[[markedText string] copy];
|
||||
event->im_set_text.complete = FALSE;
|
||||
event->im_set_text.cursor_pos = markedTextSelection.location;
|
||||
event->im_set_text.cursor_pos = markedTextSelection.location + markedTextSelection.length;
|
||||
|
||||
[[window queue] postEvent:event];
|
||||
|
||||
|
|
Loading…
Reference in a new issue