mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 12:50:04 -04:00
Fix inpuit requiring ALT key
Common on Mac, maybe other platforms too. Closes https://github.com/emilk/egui/issues/1795 Bug introduced in https://github.com/emilk/egui/pull/1697
This commit is contained in:
@@ -200,7 +200,7 @@ impl State {
|
||||
let is_mac_cmd = cfg!(target_os = "macos")
|
||||
&& (self.egui_input.modifiers.ctrl || self.egui_input.modifiers.mac_cmd);
|
||||
|
||||
if is_printable_char(*ch) && !is_mac_cmd && !self.egui_input.modifiers.alt {
|
||||
if is_printable_char(*ch) && !is_mac_cmd {
|
||||
self.egui_input
|
||||
.events
|
||||
.push(egui::Event::Text(ch.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user