diff --git a/lib/tty/key.c b/lib/tty/key.c index b0274fca4..889113b24 100644 --- a/lib/tty/key.c +++ b/lib/tty/key.c @@ -1012,6 +1012,7 @@ correct_key_code (int code) c = KEY_BACKSPACE; } +#if 0 /* Unrecognized Ctrl-d is delete */ if (c == (31 & 'd')) { @@ -1025,6 +1026,7 @@ correct_key_code (int code) c = KEY_BACKSPACE; mod &= ~KEY_M_CTRL; } +#endif /* Shift+BackSpace is backspace */ if (c == KEY_BACKSPACE && (mod & KEY_M_SHIFT)) diff --git a/misc/mc.keymap.default b/misc/mc.keymap.default index c5c3909ed..08fa2a472 100644 --- a/misc/mc.keymap.default +++ b/misc/mc.keymap.default @@ -13,8 +13,8 @@ EditUp = up EditDown = down EditEnter = enter EditReturn = shift-enter -EditBackSpace = backspace -EditDelete = delete +EditBackSpace = backspace, ctrl-h +EditDelete = delete, ctrl-d EditPageUp = pgup EditPageDown = pgdn EditWordLeft = ctrl-left; ctrl-z