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.
pull/420/head
whitequark 2019-05-20 21:52:06 +00:00
parent bda3b80609
commit e11e23483d
1 changed files with 0 additions and 7 deletions

View File

@ -942,13 +942,6 @@ public:
if(window->onKeyboardEvent) { if(window->onKeyboardEvent) {
window->onKeyboardEvent(event); window->onKeyboardEvent(event);
} else {
HWND hParent;
sscheck(hParent = GetParent(h));
if(hParent != NULL) {
sscheck(SetForegroundWindow(hParent));
sscheck(SendMessageW(hParent, msg, wParam, lParam));
}
} }
break; break;
} }