From 65226e073ebc0cbef45c06d0b1aadb6a2ba4f739 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 6 Sep 2013 09:24:28 +0000 Subject: Fixed typo in comments. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 428ef65c2..3c8d22da8 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1623,7 +1623,7 @@ static void q_set_window_title(NSWindow *nsw, const char * name, const char *mi doCommandBySelector:, setMarkedText: and insertText:. All 3 messages eventually produce Fl::handle(FL_KEYBOARD, win) calls. The doCommandBySelector: message allows to process events such as new-line, forward and backward delete, arrows, escape, tab, F1. The message setMarkedText: is sent when marked text, that is, temporary text that gets replaced later - by some other text, is inserted. This happen when a dead key is pressed, and also + by some other text, is inserted. This happens when a dead key is pressed, and also when entering complex scripts (e.g., Chinese). Fl_X::next_marked_length gives the byte length of marked text before the FL_KEYBOARD event is processed. Fl::compose_state gives this length after this processing. Message insertText: is sent to enter text in the focused widget. If there's marked text, Fl::compose_state is > 0, and this -- cgit v1.2.3