| 239 | |
| 240 | |
| 241 | void Application::injectKeyPress(MyGUI::KeyCode _key, MyGUI::Char _text) |
| 242 | { |
| 243 | MyGUI::InputManager& input = MyGUI::InputManager::getInstance(); |
| 244 | |
| 245 | bool controlPressed = input.isControlPressed() || input.isMetaPressed(); |
| 246 | if (!HotKeyManager::getInstance().onKeyEvent(true, input.isShiftPressed(), controlPressed, _key)) |
| 247 | input.injectKeyPress(_key, _text); |
| 248 | } |
| 249 | |
| 250 | void Application::injectKeyRelease(MyGUI::KeyCode _key) |
| 251 | { |
nothing calls this directly
no test coverage detected