* returns true if IME input is active, false otherwise. */
| 98 | * returns true if IME input is active, false otherwise. |
| 99 | */ |
| 100 | bool IBusHandler::IsActivated() const { |
| 101 | if (! ibus_available_) { |
| 102 | return false; |
| 103 | } |
| 104 | |
| 105 | IBusInputContext* context = GetCurrentInputContext(); |
| 106 | if(context == NULL) { |
| 107 | return false; |
| 108 | } |
| 109 | |
| 110 | return ibus_input_context_is_enabled(context); |
| 111 | }; |
| 112 | |
| 113 | /* |
| 114 | * Deactivates the current input context, hence switching back to the previous |
nothing calls this directly
no outgoing calls
no test coverage detected