Add support for <C-j> as '<Enter>' in ExLine
This commit is contained in:
parent
9fd6054ca1
commit
cc639a1e65
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue