From c5a5de57685ac3aa96f49a00317ed635f7fe0266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20=C3=96zelo=C4=9Flu?= Date: Sat, 7 Dec 2024 01:21:16 +0300 Subject: [PATCH] Fix Q and ESC bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * The command was terminated if Q or ESC is typed when the filtering is active. Signed-off-by: Gökhan Özeloğlu --- cmd/cmd.go | 2 +- tui/list/list.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 093dabc..8e504d3 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -12,7 +12,7 @@ import ( ) const ( - appVersion = "0.2.1" + appVersion = "0.2.2" ) var ( diff --git a/tui/list/list.go b/tui/list/list.go index c751fd3..a51b6e9 100644 --- a/tui/list/list.go +++ b/tui/list/list.go @@ -74,7 +74,7 @@ func (m Model) Init() tea.Cmd { func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: - if msg.String() == "ctrl+c" || msg.String() == "q" || msg.String() == tea.KeyEsc.String() { + if msg.String() == "ctrl+c" { return m, tea.Quit } if msg.String() == tea.KeyEnter.String() && !m.deletionEnabled {