tfix5-f10: format the layout trial

This commit is contained in:
aiongg
2026-11-16 00:39:08 +00:00
parent a4169d24f9
commit f2d4b50fba
+2 -1
View File
@@ -69,7 +69,8 @@ fn clashes_are_resolved_in_the_apps_favour() {
/// menus on ⌘H moves Hide to ⌃⌘H and is the clash's command, and one on ⌘, takes it from Settings.
#[trial]
fn the_keymaps_holder_takes_the_system_keys() {
let keys = |sc: &craft_menu::Chord| [("Cmd+H", "tools.fill"), ("Cmd+,", "tools.erase")].iter().find(|(k, _)| chord(k) == *sc).map(|(_, id)| cmd(id));
let keys =
|sc: &craft_menu::Chord| [("Cmd+H", "tools.fill"), ("Cmd+,", "tools.erase")].iter().find(|(k, _)| chord(k) == *sc).map(|(_, id)| cmd(id));
let l = mac_layout(&sample(false, true), &LayoutOptions::new("Sample").keys(&keys));
let clash = |sc: &str| l.clashes.iter().find(|c| c.shortcut == chord(sc)).map(|c| c.command.id.as_str());
assert_eq!(clash("Cmd+H"), Some("tools.fill"));