aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
authorevan <evan@evanw.org>2018-05-20 16:39:20 -0500
committerevan <evan@evanw.org>2018-05-21 11:00:21 -0500
commit2fb19258815e1ead757d76ef880a4cc0984c6ea2 (patch)
tree09335891158c29bacf6720573f59ccf9ec70b4e2 /ui/view-main.go
parentcbbec5bd18f76990ac401ef41b35fa798367a31d (diff)
fuzzy search prototype
Diffstat (limited to 'ui/view-main.go')
-rw-r--r--ui/view-main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index 314221a..e576a24 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -201,6 +201,10 @@ func (view *MainView) KeyEventHandler(roomView *RoomView, key *tcell.EventKey) *
view.SwitchRoom(view.roomList.Next())
case tcell.KeyUp:
view.SwitchRoom(view.roomList.Previous())
+ case tcell.KeyEnter:
+ fuzz := NewFuzzyView(view, 42, 12)
+ view.parent.views.AddPage("fuzzy", fuzz, true, true)
+ view.parent.app.SetFocus(fuzz)
default:
return key
}