about summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher Vittal <christopher.vittal@gmail.com>2019-08-18 01:37:49 -0400
committerDrew DeVault <sir@cmpwn.com>2019-08-19 15:23:07 +0900
commitcc639a1e656560fbfbbacbc115d3559c46452189 (patch)
treefb35b6f19beb60d9f8b7d71fc4dece9a87bda891 /widgets
parent9fd6054ca1a99205d2abb6408ece747d2eddaae7 (diff)
downloadaerc-cc639a1e656560fbfbbacbc115d3559c46452189.tar.gz
Add support for <C-j> as '<Enter>' in ExLine
Diffstat (limited to 'widgets')
-rw-r--r--widgets/exline.go2
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)