File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ func (m Model) handleDashboardKeys(key string) (tea.Model, tea.Cmd) {
174174 m .PrevScreen = ScreenDashboard
175175 m .Screen = ScreenSearch
176176 m .Cursor = 0
177+ m .SearchInput .SetValue ("" )
177178 m .SearchInput .Focus ()
178179 return m , nil
179180 case "q" :
@@ -188,6 +189,7 @@ func (m Model) handleDashboardSelection() (tea.Model, tea.Cmd) {
188189 m .PrevScreen = ScreenDashboard
189190 m .Screen = ScreenSearch
190191 m .Cursor = 0
192+ m .SearchInput .SetValue ("" )
191193 m .SearchInput .Focus ()
192194 return m , nil
193195 case 1 : // Recent observations
@@ -300,6 +302,7 @@ func (m Model) handleSearchResultsKeys(key string) (tea.Model, tea.Cmd) {
300302 m .SearchInput .Focus ()
301303 return m , nil
302304 case "esc" , "q" :
305+ m .PrevScreen = ScreenDashboard
303306 m .Screen = ScreenSearch
304307 m .Cursor = 0
305308 m .Scroll = 0
You can’t perform that action at this time.
0 commit comments