fish_key_reader: show most specific key notation first

As of the parent commit, "ctrl-shift-x" bindings will take precedence over
"ctrl-X". Have fish_key_reader imply this via the ordering The next commit
will make this more explicit.
This commit is contained in:
Johannes Altmanninger
2025-05-26 15:00:02 +02:00
parent 08c8afcb12
commit 3ab6fcf21c

View File

@@ -129,13 +129,13 @@ fn process_input(streams: &mut IoStreams, continuous_mode: bool, verbose: bool)
.shifted_codepoint
.to_lowercase()
.eq(Some(kevt.key.codepoint).into_iter());
print_bind_example(&kevt.key, have_shifted_key && prefer_explicit_shift);
if have_shifted_key {
let mut shifted_key = kevt.key.key;
shifted_key.modifiers.shift = false;
shifted_key.codepoint = kevt.key.shifted_codepoint;
print_bind_example(&shifted_key, !prefer_explicit_shift);
}
print_bind_example(&kevt.key, have_shifted_key && prefer_explicit_shift);
if continuous_mode && should_exit(streams, &mut recent_chars, kevt.key) {
streams.err.appendln("\nExiting at your request.");