Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Update shortcuts.go
Browse files Browse the repository at this point in the history
Changed - to ESC for exiting insert and visual mode
  • Loading branch information
Daniel Pérez authored Nov 17, 2020
1 parent ad82e0e commit de5606c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shortcuts/shortcuts.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ var (
VimNormalMode = addShortcut("vim_normal_mode", "Return to vim normal mode",
globalScope, nil,
// FIXME escape key not working in my machine. Using hyphen instead temporarily.
addVimEvent(tcell.NewEventKey(tcell.KeyRune, '-', tcell.ModNone),tcell.NewEventKey(tcell.KeyRune, '-', tcell.ModNone),tcell.NewEventKey(tcell.KeyRune, '-', tcell.ModNone)),
addVimEvent(NullVimKey,tcell.NewEventKey(tcell.KeyEscape, rune(tcell.KeyEscape), tcell.ModNone),tcell.NewEventKey(tcell.KeyEscape, rune(tcell.KeyEscape), tcell.ModNone)),
)

VimSimKeyUp = addShortcut("vim_sim_up", "Simulate an arrow key press in vim mode.",
Expand Down

0 comments on commit de5606c

Please sign in to comment.