Compare commits
4 Commits
6b06243fdc
...
4f5421b567
Author | SHA1 | Date | |
---|---|---|---|
|
4f5421b567 | ||
1b9f8d96fc | |||
|
69d008feb6 | ||
ada020e283 |
690
Cargo.lock
generated
690
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -36,6 +36,7 @@ impl InteractiveApp for &'static crate::app::App {
|
||||
}
|
||||
|
||||
mod app {
|
||||
use crossterm::event::KeyModifiers;
|
||||
use ratatui::{
|
||||
crossterm::event::{self, Event, KeyCode},
|
||||
layout::{Constraint, Layout},
|
||||
@ -92,6 +93,12 @@ mod app {
|
||||
terminal.draw(|frame| self.draw(frame))?;
|
||||
|
||||
if let Event::Key(key) = event::read()? {
|
||||
if let KeyCode::Char('c') = key.code {
|
||||
if key.modifiers.contains(KeyModifiers::CONTROL) {
|
||||
return Ok(None);
|
||||
}
|
||||
}
|
||||
|
||||
match key.code {
|
||||
KeyCode::Char(letter) => {
|
||||
self.current_search.push(letter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user