aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-15 01:12:06 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-15 01:31:23 -0400
commit8d20e9218ece5927d786d6e2fac5c50572fb9c81 (patch)
treee4cdf0ba821dccbb510f169c7731ae78ce987830 /widgets
parentd274bf926c79ec834afcac00dab3f95f8bd5325f (diff)
Implement key bindings subsystem
Which is not yet rigged up
Diffstat (limited to 'widgets')
-rw-r--r--widgets/exline.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/widgets/exline.go b/widgets/exline.go
index e0954d7..77f1414 100644
--- a/widgets/exline.go
+++ b/widgets/exline.go
@@ -126,10 +126,8 @@ func (ex *ExLine) Event(event tcell.Event) bool {
case tcell.KeyEsc, tcell.KeyCtrlC:
ex.ctx.HideCursor()
ex.cancel()
- default:
- if event.Rune() != 0 {
- ex.insert(event.Rune())
- }
+ case tcell.KeyRune:
+ ex.insert(event.Rune())
}
}
return true