Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: bus/inputcontext.c

Issue 2884006: Make sure that we won't wrongly match a hotkey after losing and getting focus. (Closed) Base URL: ssh://gitrw.chromium.org/ibus.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bus/inputcontext.c
diff --git a/bus/inputcontext.c b/bus/inputcontext.c
index 936dec16bb8be09060b92a0fcde835c62780dfbc..f63c3aec5a2af9aa8ee429e2fb8606eca44d3f3c 100644
--- a/bus/inputcontext.c
+++ b/bus/inputcontext.c
@@ -1163,6 +1163,11 @@ bus_input_context_focus_in (BusInputContext *context)
context->has_focus = TRUE;
+ // To make sure that we won't use an old value left before we losing focus
+ // last time.
+ context->prev_keyval = IBUS_VoidSymbol;
+ context->prev_modifiers = 0;
+
if (context->engine == NULL && context->enabled) {
g_signal_emit (context, context_signals[REQUEST_ENGINE], 0, NULL);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698