From: Peng Huang Date: Mon, 20 Apr 2009 02:28:58 +0000 (+0800) Subject: If im is not active, ibus will do nothing when prev engine hotkey X-Git-Tag: 1.1.0.20090423~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2eb2b3debaff98a6d077186deee5e5f6fcd9ae87;p=platform%2Fupstream%2Fibus.git If im is not active, ibus will do nothing when prev engine hotkey is pressed. --- diff --git a/bus/inputcontext.c b/bus/inputcontext.c index 7003bd7..a7d53e1 100644 --- a/bus/inputcontext.c +++ b/bus/inputcontext.c @@ -2098,10 +2098,10 @@ bus_input_context_filter_keyboard_shortcuts (BusInputContext *context, return TRUE; } else if (event == prev_factory) { - g_signal_emit (context, context_signals[REQUEST_PREV_ENGINE], 0); - if (priv->engine && !priv->enabled) { - bus_input_context_enable (context); + if (priv->engine == NULL || priv->enabled == FALSE) { + return FALSE; } + g_signal_emit (context, context_signals[REQUEST_PREV_ENGINE], 0); return TRUE; } else