From e11e23483d4b4cf80b1d6da93adbe7fa61313d69 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 20 May 2019 21:52:06 +0000 Subject: [PATCH] Win32: remove dead code in keyboard event handling. The forwarding is now performed explicitly in the text window setup code, so this branch never has a chance to run. --- src/platform/guiwin.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/platform/guiwin.cpp b/src/platform/guiwin.cpp index 73da2daa..8688d64b 100644 --- a/src/platform/guiwin.cpp +++ b/src/platform/guiwin.cpp @@ -942,13 +942,6 @@ public: if(window->onKeyboardEvent) { window->onKeyboardEvent(event); - } else { - HWND hParent; - sscheck(hParent = GetParent(h)); - if(hParent != NULL) { - sscheck(SetForegroundWindow(hParent)); - sscheck(SendMessageW(hParent, msg, wParam, lParam)); - } } break; }