mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-12 00:40:36 -06:00
M7: use native macOS paste modifiers in tests
This commit is contained in:
@@ -163,7 +163,8 @@ impl Win {
|
||||
}
|
||||
}
|
||||
|
||||
const CMD: Modifiers = Modifiers::COMMAND.plus(Modifiers::CTRL);
|
||||
// egui sets `command` for Cmd on macOS and for Ctrl elsewhere; macOS Ctrl is a separate key.
|
||||
const CMD: Modifiers = if cfg!(target_os = "macos") { Modifiers::COMMAND } else { Modifiers::COMMAND.plus(Modifiers::CTRL) };
|
||||
|
||||
fn key(key: Key, pressed: bool, modifiers: Modifiers) -> Event {
|
||||
Event::Key { key, physical_key: Some(key), pressed, repeat: false, modifiers }
|
||||
|
||||
Reference in New Issue
Block a user