From: handa Date: Tue, 21 Dec 2004 01:55:54 +0000 (+0000) Subject: (KeyProc): Handle C-\ as resetting input context. X-Git-Tag: REL-1-2-0~48 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44124f7c4ace1b49b878759045ecaa06b72cdb16;p=m17n%2Fm17n-lib.git (KeyProc): Handle C-\ as resetting input context. --- diff --git a/example/medit.c b/example/medit.c index 8f5dee3..320b366 100644 --- a/example/medit.c +++ b/example/medit.c @@ -1588,6 +1588,13 @@ KeyProc (Widget w, XEvent *event, String *str, Cardinal *num) redraw (0, win_height, 1, 1); return; } + else if (buf[0] == 28) /* C-\ */ + { + if (current_input_context) + minput_reset_ic (current_input_context); + if (mtext_len (current_input_context->produced) > 0) + insert_chars (current_input_context->produced); + } else { MText *temp = mtext ();