summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-02-24 21:37:36 -0500
committerClementTsang <cjhtsang@uwaterloo.ca>2020-02-24 21:37:36 -0500
commit1c52587760eeb92b01016fbabb0f893607909480 (patch)
tree2e93b8a6f3e78b299ffcdf6bb93592a5f69e4bc2
parent2f7840568cdf302b8498dd15fb07782c4369098f (diff)
Fix alt key too... windows treats it as a CAPITAL. Go figure.
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index f72de300..03c3cd5c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -369,21 +369,21 @@ fn handle_key_event_or_break(
}
} else if let KeyModifiers::ALT = event.modifiers {
match event.code {
- KeyCode::Char('c') => {
+ KeyCode::Char('c') | KeyCode::Char('C') => {
if app.is_in_search_widget() {
app.process_search_state.toggle_ignore_case();
app.update_regex();
app.update_process_gui = true;
}
}
- KeyCode::Char('w') => {
+ KeyCode::Char('w') | KeyCode::Char('W') => {
if app.is_in_search_widget() {
app.process_search_state.toggle_search_whole_word();
app.update_regex();
app.update_process_gui = true;
}
}
- KeyCode::Char('r') => {
+ KeyCode::Char('r') | KeyCode::Char('R') => {
if app.is_in_search_widget() {
app.process_search_state.toggle_search_regex();
app.update_regex();