* Activates the first input among the loaded ones. */
| 155 | * Activates the first input among the loaded ones. |
| 156 | */ |
| 157 | void WinapiHandler::Deactivate() { |
| 158 | std::vector<std::string> engines = GetLoadedEngines(); |
| 159 | if (engines.size() > 0) { |
| 160 | ActivateEngine(engines[0]); |
| 161 | } else { |
| 162 | std::cerr << "No default engine could be activated" << std::endl; |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | /* |
| 167 | * Return the key combination as written in the list that enables |