Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Eun committed Mar 8, 2023
1 parent 6165277 commit 06d461a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spinner/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ func (m *View) Init() tea.Cmd {
func (m *View) Update(msg tea.Msg) tea.Cmd {
switch msg := msg.(type) {
case tea.KeyMsg:
switch msg.Type {
case tea.KeyEsc:
if msg.Type == tea.KeyEsc {
if m.allowEscapeKey {
if m.actionCtxCancel != nil {
m.actionCtxCancel()
Expand Down

0 comments on commit 06d461a

Please sign in to comment.