aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-21 19:59:45 +0300
committerGitHub <noreply@github.com>2018-05-21 19:59:45 +0300
commit3c23126e7fde2ad97c44d9069794b6002dac2fa3 (patch)
tree8c1518fbe964d32cda398b0a014d0da66f34c4f5 /ui/view-main.go
parentcbbec5bd18f76990ac401ef41b35fa798367a31d (diff)
parentb22ef132b755c6960c74aa980df2cc8e9126b26b (diff)
Merge pull request #49 from Evidlo/fuzzy
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
}