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 24, 2024
1 parent ed45fdd commit 83fbfd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,7 @@ 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_ctx.os() == egui::os::OperatingSystem::Windows
&& self.egui_input.modifiers.alt);
|| self.egui_input.modifiers.mac_cmd;
if pressed && !is_cmd {
self.egui_input
.events
Expand Down

0 comments on commit 83fbfd2

Please sign in to comment.