projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
905f021
)
GtkIMContextIME: Ignore ASCII control characters
author
Philip Zander
<philip.zander@gmail.com>
Mon, 17 Jan 2022 10:56:48 +0000
(11:56 +0100)
committer
Philip Zander
<philip.zander@gmail.com>
Mon, 17 Jan 2022 11:03:01 +0000
(12:03 +0100)
Make GtkIMContextIME ignore ASCII control characters just like other
IMContext implementations (e.G. GtkIMContextSimple). Fixes bogus
characters appearing in text input fields (old bug 676077).
gtk/gtkimcontextime.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimcontextime.c
b/gtk/gtkimcontextime.c
index 6025239543fa4c03819fa968c900d5ff1ebe8808..5c9282b59d58f91e2c0f4e26bc355b244d6ad3d6 100644
(file)
--- a/
gtk/gtkimcontextime.c
+++ b/
gtk/gtkimcontextime.c
@@
-382,7
+382,7
@@
gtk_im_context_ime_filter_keypress (GtkIMContext *context,
c = gdk_keyval_to_unicode (keyval);
- if (c)
+ if (c
&& !g_unichar_iscntrl(c)
)
{
_gtk_im_context_ime_commit_unichar (context_ime, c);
retval = TRUE;