mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +02:00
Handle exit key correctly
This commit is contained in:
parent
b730c11d36
commit
3fb3d1c4e2
1 changed files with 3 additions and 2 deletions
|
@ -37,10 +37,11 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
let mut terminal = setup_terminal()?;
|
||||
|
||||
// Setup event handlers
|
||||
let events = Events::with_config(Config {
|
||||
let mut events = Events::with_config(Config {
|
||||
exit_key: Key::Char('q'),
|
||||
tick_rate: Duration::from_secs(5),
|
||||
tick_rate: Duration::from_secs(1),
|
||||
});
|
||||
events.disable_exit_key();
|
||||
|
||||
let mut app = App::new();
|
||||
app.next();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue