mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +00:00
Raise combo keys for all special combos, not just quit
This commit is contained in:
@@ -51,11 +51,6 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
|||||||
(event->keysym.mod & KMOD_ALT) &&
|
(event->keysym.mod & KMOD_ALT) &&
|
||||||
(event->keysym.mod & KMOD_SHIFT)) {
|
(event->keysym.mod & KMOD_SHIFT)) {
|
||||||
|
|
||||||
// Check for quit combo (Ctrl+Alt+Shift+Q)
|
|
||||||
if (event->keysym.sym == SDLK_q) {
|
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
|
||||||
"Detected quit key combo");
|
|
||||||
|
|
||||||
// Force raise all keys in the combo to avoid
|
// Force raise all keys in the combo to avoid
|
||||||
// leaving them down after disconnecting
|
// leaving them down after disconnecting
|
||||||
LiSendKeyboardEvent(0xA0, KEY_ACTION_UP, 0);
|
LiSendKeyboardEvent(0xA0, KEY_ACTION_UP, 0);
|
||||||
@@ -65,6 +60,11 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
|||||||
LiSendKeyboardEvent(0xA4, KEY_ACTION_UP, 0);
|
LiSendKeyboardEvent(0xA4, KEY_ACTION_UP, 0);
|
||||||
LiSendKeyboardEvent(0xA5, KEY_ACTION_UP, 0);
|
LiSendKeyboardEvent(0xA5, KEY_ACTION_UP, 0);
|
||||||
|
|
||||||
|
// Check for quit combo (Ctrl+Alt+Shift+Q)
|
||||||
|
if (event->keysym.sym == SDLK_q) {
|
||||||
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
|
"Detected quit key combo");
|
||||||
|
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
|
||||||
// Drain the event queue of any additional input
|
// Drain the event queue of any additional input
|
||||||
|
|||||||
Reference in New Issue
Block a user