projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b36d7f6
)
(KeyProc): Handle C-\ as resetting input context.
author
handa
<handa>
Tue, 21 Dec 2004 01:55:54 +0000
(
01:55
+0000)
committer
handa
<handa>
Tue, 21 Dec 2004 01:55:54 +0000
(
01:55
+0000)
example/medit.c
patch
|
blob
|
history
diff --git
a/example/medit.c
b/example/medit.c
index
8f5dee3
..
320b366
100644
(file)
--- 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 ();