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.data = [window imeData];
|
||||||
event->im_set_text.text = (CFStringRef)[[markedText string] copy];
|
event->im_set_text.text = (CFStringRef)[[markedText string] copy];
|
||||||
event->im_set_text.complete = FALSE;
|
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];
|
[[window queue] postEvent:event];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue