Change the help binding to Ctrl-g from Ctrl-h

This is necessary because some terminals send Backspace and Ctrl-h as
the same key, so Ctrl-h must be reserved for deleting. See #8.
This commit is contained in:
Zachary Yedidia
2016-04-18 16:28:53 -04:00
parent fdceddefe1
commit d10c401a97
4 changed files with 4 additions and 4 deletions

View File

@@ -394,7 +394,7 @@ func (v *View) HandleEvent(event tcell.Event) {
v.eh.Insert(v.cursor.Loc(), " ")
v.cursor.Right()
v.UpdateLines(v.cursor.y, v.cursor.y)
case tcell.KeyBackspace2:
case tcell.KeyBackspace2, tcell.KeyBackspace:
// Delete a character
if v.cursor.HasSelection() {
v.cursor.DeleteSelection()