diff --git a/cmd/micro/help.go b/cmd/micro/help.go index b1ef8b65..5af3cc98 100644 --- a/cmd/micro/help.go +++ b/cmd/micro/help.go @@ -26,7 +26,7 @@ Ctrl-c: Copy Ctrl-x: Cut Ctrl-v: Paste -Ctrl-h: Open help +Ctrl-g: Open this help screen Ctrl-u: Half page up Ctrl-d: Half page down diff --git a/cmd/micro/micro.go b/cmd/micro/micro.go index 2a1dfdcb..b1c93d8e 100644 --- a/cmd/micro/micro.go +++ b/cmd/micro/micro.go @@ -197,7 +197,7 @@ func main() { if !canceled { HandleCommand(input, view) } - case tcell.KeyCtrlH: + case tcell.KeyCtrlG: DisplayHelp() // Make sure to resize the view if the user resized the terminal while looking at the help text view.Resize(screen.Size()) diff --git a/cmd/micro/statusline.go b/cmd/micro/statusline.go index f02d499f..df554e04 100644 --- a/cmd/micro/statusline.go +++ b/cmd/micro/statusline.go @@ -40,7 +40,7 @@ func (sline *Statusline) Display() { // Add the filetype file += " " + sline.view.buf.filetype - centerText := "Press Ctrl-h for help" + centerText := "Press Ctrl-g for help" statusLineStyle := defStyle.Reverse(true) if style, ok := colorscheme["statusline"]; ok { diff --git a/cmd/micro/view.go b/cmd/micro/view.go index 84dd4cd4..7db9f84f 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -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()