Skip to content

Commit

Permalink
Removing ESC key to quit TUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandesh Grangdan committed Sep 4, 2024
1 parent 757daf7 commit e509de1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ssm-tui"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

# Github Repo
Expand Down
2 changes: 1 addition & 1 deletion src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::app::ps_list_filter::user_input::InputMode;
pub async fn update(app: &mut App, key_event: KeyEvent, tui : &mut Tui) {
match app.ps_filter_data.input_mode {
InputMode::Normal => match key_event.code {
KeyCode::Esc | KeyCode::Char('q') => app.quit(),
// KeyCode::Esc | KeyCode::Char('q') => app.quit(),
KeyCode::Char('c') | KeyCode::Char('C') => {
if key_event.modifiers == KeyModifiers::CONTROL {
app.quit()
Expand Down

0 comments on commit e509de1

Please sign in to comment.