diff options
author | BlakeMScurr <blakemscurr@gmail.com> | 2018-11-30 11:04:08 +1300 |
---|---|---|
committer | BlakeMScurr <blakemscurr@gmail.com> | 2018-11-30 11:04:08 +1300 |
commit | 643cdd3461007fafb1fd9284a65b54f36e55ddac (patch) | |
tree | 0266b3c0e5184e0da054d4310a7b301e208d056c /pkg/gui/keybindings.go | |
parent | 5c70d2724b508c3021558162fbfd9792c2d77e63 (diff) |
Add simple comments to uncommented functions.
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 8d07429a6..6c1f6c296 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -21,6 +21,7 @@ func (b *Binding) GetDisplayStrings() []string { return []string{b.GetKey(), b.Description} } +// GetKey is a function func (b *Binding) GetKey() string { r, ok := b.Key.(rune) key := "" @@ -34,6 +35,7 @@ func (b *Binding) GetKey() string { return key } +// GetKeybindings is a function func (gui *Gui) GetKeybindings() []*Binding { bindings := []*Binding{ { |