Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

fix: #858 (#1291)

Crow449400eb838d
diff --git a/windows/runner/win32_window.cpp b/windows/runner/win32_window.cpp
index 60608d0f..8e098fab 100644
--- a/windows/runner/win32_window.cpp
+++ b/windows/runner/win32_window.cpp
@@ -208,6 +208,14 @@ Win32Window::MessageHandler(HWND hwnd,
}
case WM_ACTIVATE:
+ if (LOWORD(wparam) == WA_ACTIVE || LOWORD(wparam) == WA_CLICKACTIVE) {
+ if (child_content_ != nullptr) {
+ SetFocus(child_content_);
+ }
+ }
+ return 0;
+
+ case WM_SETFOCUS:
if (child_content_ != nullptr) {
SetFocus(child_content_);
}