Skip to content

Commit

Permalink
Support uppercase letters
Browse files Browse the repository at this point in the history
  • Loading branch information
pdecat committed Jan 11, 2023
1 parent 4c3e2c4 commit 2743df5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/command/client/search/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,6 @@ impl State {
state: KeyEventState::NONE,
},
) => self.input.end(),
Key(KeyEvent {
code: KeyCode::Char(c),
modifiers: KeyModifiers::NONE,
kind: KeyEventKind::Press,
state: KeyEventState::NONE,
}) => self.input.insert(*c),
Key(KeyEvent {
code: KeyCode::Backspace,
modifiers: KeyModifiers::NONE,
Expand Down Expand Up @@ -299,6 +293,12 @@ impl State {
let i = self.results_state.selected() + 10;
self.results_state.select(i.min(len - 1));
}
Key(KeyEvent {
code: KeyCode::Char(c),
modifiers: KeyModifiers::NONE | KeyModifiers::SHIFT,
kind: KeyEventKind::Press,
state: KeyEventState::NONE,
}) => self.input.insert(*c),
_ => {}
};

Expand Down

0 comments on commit 2743df5

Please sign in to comment.