Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Nov 4, 2024
1 parent 5d6a58b commit 031bdae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 031bdae

Please sign in to comment.