summaryrefslogtreecommitdiffstats
path: root/cointop/keybindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'cointop/keybindings.go')
-rw-r--r--cointop/keybindings.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/cointop/keybindings.go b/cointop/keybindings.go
index fa4056a..67def1a 100644
--- a/cointop/keybindings.go
+++ b/cointop/keybindings.go
@@ -12,8 +12,8 @@ func (ct *Cointop) ParseKeys(s string) (interface{}, gocui.Modifier) {
mod := gocui.ModNone
split := strings.Split(s, "+")
if len(split) > 1 {
- m := strings.ToLower(split[0])
- k := strings.ToLower(split[1])
+ m := strings.ToLower(strings.TrimSpace(split[0]))
+ k := strings.ToLower(strings.TrimSpace(split[1]))
if m == "alt" {
mod = gocui.ModAlt
s = k
@@ -309,6 +309,9 @@ func (ct *Cointop) Keybindings(g *gocui.Gui) error {
case "toggle_table_fullscreen":
fn = ct.Keyfn(ct.ToggleTableFullscreen)
view = ""
+ case "toggle_chart_fullscreen":
+ fn = ct.Keyfn(ct.ToggleChartFullscreen)
+ view = ""
case "enlarge_chart":
fn = ct.Keyfn(ct.EnlargeChart)
case "shorten_chart":