summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-03-02 18:45:18 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-03-02 19:05:21 +1100
commit7a170bbccfb5464706694320041567fdf7cd5eff (patch)
tree800b44100d087e1f4004245e068d47b2c1540321 /pkg/gui
parent8c0ea8f45fde1dfddd23198fcb06ae77468e3a3a (diff)
extend cheatsheet generator to contain context based keybindings
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/keybindings.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 3e0e3b1d1..eb49fe672 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -13,7 +13,6 @@ type Binding struct {
Key interface{} // FIXME: find out how to get `gocui.Key | rune`
Modifier gocui.Modifier
Description string
- panic bool
}
// GetDisplayStrings returns the display string of a file
@@ -32,10 +31,6 @@ func (b *Binding) GetKey() string {
key = int(b.Key.(gocui.Key))
}
- if b.panic {
- panic(key)
- }
-
// special keys
switch key {
case 27: