mirror of https://github.com/MidnightCommander/mc
Ticket #2432: backspace key doesn't work in input lines.
Also added default bindings for C-d and C-h keys in editor and input lines. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
cbd436f00f
commit
680b9a8220
|
@ -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 =
|
||||
|
|
|
@ -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"},
|
||||
|
||||
|
|
Loading…
Reference in New Issue