windows: Fix ctrl-click open hovered URL (#30574)

Closes #30452

Release Notes:

- N/A
This commit is contained in:
张小白
2025-05-12 22:15:50 +08:00
committed by GitHub
parent 19b6c4444e
commit 33c896c23d
2 changed files with 13 additions and 4 deletions
@@ -42,6 +42,7 @@ pub struct WindowsWindowState {
pub callbacks: Callbacks,
pub input_handler: Option<PlatformInputHandler>,
pub last_reported_modifiers: Option<Modifiers>,
pub system_key_handled: bool,
pub hovered: bool,
@@ -100,6 +101,7 @@ impl WindowsWindowState {
let renderer = windows_renderer::init(gpu_context, hwnd, transparent)?;
let callbacks = Callbacks::default();
let input_handler = None;
let last_reported_modifiers = None;
let system_key_handled = false;
let hovered = false;
let click_state = ClickState::new();
@@ -118,6 +120,7 @@ impl WindowsWindowState {
min_size,
callbacks,
input_handler,
last_reported_modifiers,
system_key_handled,
hovered,
renderer,