From 44124f7c4ace1b49b878759045ecaa06b72cdb16 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 21 Dec 2004 01:55:54 +0000 Subject: [PATCH] (KeyProc): Handle C-\ as resetting input context. --- example/medit.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 (); -- 1.7.10.4