summaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-12-15 15:57:30 +0100
committerCanop <cano.petrole@gmail.com>2022-12-15 15:57:30 +0100
commite4097c9d09b6df41203b0ca99fc3b728a0ca8970 (patch)
treed796537d7570df5ae72b0c0d465eed63c2f3ab60 /src/command
parentb93d834433dcef2dc3dfc4e9695290d87473fc6f (diff)
allow going to help with just `?` on Windows
Diffstat (limited to 'src/command')
-rw-r--r--src/command/panel_input.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/panel_input.rs b/src/command/panel_input.rs
index c49244f..192645c 100644
--- a/src/command/panel_input.rs
+++ b/src/command/panel_input.rs
@@ -306,7 +306,8 @@ impl PanelInput {
return Command::from_parts(parts, true);
}
- if key == key!('?') && (raw.is_empty() || parts.verb_invocation.is_some()) {
+ if (key == key!('?') || key == key!(shift-'?'))
+ && (raw.is_empty() || parts.verb_invocation.is_some()) {
// a '?' opens the help when it's the first char
// or when it's part of the verb invocation
return Command::Internal {