mirror of
https://github.com/miguelmota/cointop
synced 2024-11-05 00:00:14 +00:00
Only open search if active view is table. #150
This commit is contained in:
parent
6286450412
commit
fb79419c84
@ -29,6 +29,9 @@ func NewInputView() *InputView {
|
||||
// OpenSearch opens the search field
|
||||
func (ct *Cointop) openSearch() error {
|
||||
ct.debuglog("openSearch()")
|
||||
if ct.ui.ActiveViewName() != ct.Views.Table.Name() {
|
||||
return nil
|
||||
}
|
||||
ct.State.searchFieldVisible = true
|
||||
ct.ui.SetCursor(true)
|
||||
ct.SetActiveView(ct.Views.SearchField.Name())
|
||||
|
Loading…
Reference in New Issue
Block a user