diff options
author | Christopher Vittal <christopher.vittal@gmail.com> | 2019-08-18 01:37:49 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-19 15:23:07 +0900 |
commit | cc639a1e656560fbfbbacbc115d3559c46452189 (patch) | |
tree | fb35b6f19beb60d9f8b7d71fc4dece9a87bda891 /widgets | |
parent | 9fd6054ca1a99205d2abb6408ece747d2eddaae7 (diff) | |
download | aerc-cc639a1e656560fbfbbacbc115d3559c46452189.tar.gz |
Add support for <C-j> as '<Enter>' in ExLine
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/exline.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/exline.go b/widgets/exline.go index 4791ae9..be1cde1 100644 --- a/widgets/exline.go +++ b/widgets/exline.go @@ -50,7 +50,7 @@ func (ex *ExLine) Event(event tcell.Event) bool { switch event := event.(type) { case *tcell.EventKey: switch event.Key() { - case tcell.KeyEnter: + case tcell.KeyEnter, tcell.KeyCtrlJ: cmd := ex.input.String() ex.input.Focus(false) ex.commit(cmd) |