config: Show mods before key for wezterm show-keys --lua (#7539)

This commit is contained in:
Vikas Kumar authored and GitHub committed 2026-11-20 03:31:26 +01:00
1 parent 6ac9398a15
commit cca5700f38
1 file changed
+2 -2
+2 -2
View File
@@ -499,7 +499,7 @@ impl InputMap {
pub fn show_keys(&self) {
if let Some((key, mods, duration)) = &self.leader {
println!("Leader: {key:?} {mods:?} {duration:?}");
println!("Leader: {mods:?} {key:?} {duration:?}");
}
section_header("Default key table");
@@ -775,7 +775,7 @@ fn lua_key(key: &KeyCode, mods: Modifiers, action: &KeyAssignment) -> String {
let mods = format!("{mods:?}").replace(" ", "");
format!("{{ key = {key}, mods = '{mods}', action = {action} }}")
format!("{{ mods = '{mods}', key = {key}, action = {action} }}")
}
fn show_key_table(table: &config::keyassignment::KeyTable) {