Commit 20daa8b6 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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.
parent d3d4e3a9
......@@ -431,7 +431,7 @@ static inline NSUInteger adjusted_modifiers_for_option_behavior(NSUInteger modif
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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment