From 031bdae4b7aeb8b2b185cc4ba3704272d7f6ffeb Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Tue, 5 Nov 2024 00:35:53 +0900 Subject: [PATCH] Update lib.rs --- crates/egui-winit/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index a78339d01fe..fce733ed207 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -800,7 +800,9 @@ impl State { // contain some data even when the key is released. let is_cmd = self.egui_input.modifiers.ctrl || self.egui_input.modifiers.command - || self.egui_input.modifiers.mac_cmd; + || self.egui_input.modifiers.mac_cmd + || (self.egui_ctx.os() == egui::os::OperatingSystem::Windows + && self.egui_input.modifiers.alt); if pressed && !is_cmd { self.egui_input .events