Merge branch '2432_broken_bs'

* 2432_broken_bs:
  Ticket #2432: backspace key doesn't work in input lines.
This commit is contained in:
Andrew Borodin 2010-12-02 11:30:49 +03:00
commit 39fd2ff03b
2 changed files with 6 additions and 2 deletions

View File

@ -323,8 +323,8 @@ InputMoveRight = right; alt-right
InputWordRight = ctrl-right
InputForwardChar = ctrl-f
InputForwardWord = alt-f
InputBackwardDelete = backspace
InputDeleteChar = delete
InputBackwardDelete = backspace; ctrl-h
InputDeleteChar = delete; ctrl-d
InputKillWord = alt-d
InputBackwardKillWord = alt-backspace
InputSetMark =

View File

@ -250,7 +250,9 @@ const global_keymap_t default_editor_keymap[] = {
{ESC_CHAR, CK_Quit, "Esc"},
{KEY_BACKSPACE, CK_BackSpace, "BackSpace"},
{KEY_BACKSPACE, CK_BackSpace, "C-h"},
{KEY_DC, CK_Delete, "Delete"},
{KEY_DC, CK_Delete, "C-d"},
{KEY_DOWN, CK_Down, "Down"},
{KEY_END, CK_End, "End"},
{KEY_HOME, CK_Home, "Home"},
@ -607,7 +609,9 @@ const global_keymap_t default_input_keymap[] = {
/* Editing */
{KEY_BACKSPACE, CK_InputBackwardDelete, "BackSpace"},
{KEY_BACKSPACE, CK_InputBackwardDelete, "C-h"},
{KEY_DC, CK_InputDeleteChar, "Delete"},
{KEY_DC, CK_InputDeleteChar, "C-d"},
{ALT ('d'), CK_InputKillWord, "M-d"},
{ALT (KEY_BACKSPACE), CK_InputBackwardKillWord, "M-BackSpace"},