diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-15 01:12:06 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-15 01:31:23 -0400 |
commit | 8d20e9218ece5927d786d6e2fac5c50572fb9c81 (patch) | |
tree | e4cdf0ba821dccbb510f169c7731ae78ce987830 /widgets/exline.go | |
parent | d274bf926c79ec834afcac00dab3f95f8bd5325f (diff) | |
download | aerc-8d20e9218ece5927d786d6e2fac5c50572fb9c81.tar.gz |
Implement key bindings subsystem
Which is not yet rigged up
Diffstat (limited to 'widgets/exline.go')
-rw-r--r-- | widgets/exline.go | 6 |
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 |