Check the key input and cancel or confirms the search
(msg string)
| 333 | |
| 334 | // Check the key input and cancel or confirms the search |
| 335 | func (m *model) focusOnSearchbarKey(msg string) { |
| 336 | switch { |
| 337 | case slices.Contains(common.Hotkeys.CancelTyping, msg): |
| 338 | m.cancelSearch() |
| 339 | case slices.Contains(common.Hotkeys.ConfirmTyping, msg): |
| 340 | m.confirmSearch() |
| 341 | } |
| 342 | } |
no test coverage detected