mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user