diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-02 18:45:18 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-02 19:05:21 +1100 |
commit | 7a170bbccfb5464706694320041567fdf7cd5eff (patch) | |
tree | 800b44100d087e1f4004245e068d47b2c1540321 /pkg/gui/keybindings.go | |
parent | 8c0ea8f45fde1dfddd23198fcb06ae77468e3a3a (diff) |
extend cheatsheet generator to contain context based keybindings
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 5 |
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: |