MCPcopy
hub / github.com/yorukot/superfile / focusOnSearchbarKey

Method focusOnSearchbarKey

src/internal/key_function.go:335–342  ·  view source on GitHub ↗

Check the key input and cancel or confirms the search

(msg string)

Source from the content-addressed store, hash-verified

333
334// Check the key input and cancel or confirms the search
335func (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}

Callers 1

handleKeyInputMethod · 0.95

Calls 2

cancelSearchMethod · 0.95
confirmSearchMethod · 0.95

Tested by

no test coverage detected