mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Removed hardcoded actions on ctrl-d and ctrl-h hotkeys. Now these hotkeys defined in keymap file.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
0ef9273598
commit
b1bd2e2673
@ -1012,6 +1012,7 @@ correct_key_code (int code)
|
|||||||
c = KEY_BACKSPACE;
|
c = KEY_BACKSPACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* Unrecognized Ctrl-d is delete */
|
/* Unrecognized Ctrl-d is delete */
|
||||||
if (c == (31 & 'd'))
|
if (c == (31 & 'd'))
|
||||||
{
|
{
|
||||||
@ -1025,6 +1026,7 @@ correct_key_code (int code)
|
|||||||
c = KEY_BACKSPACE;
|
c = KEY_BACKSPACE;
|
||||||
mod &= ~KEY_M_CTRL;
|
mod &= ~KEY_M_CTRL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Shift+BackSpace is backspace */
|
/* Shift+BackSpace is backspace */
|
||||||
if (c == KEY_BACKSPACE && (mod & KEY_M_SHIFT))
|
if (c == KEY_BACKSPACE && (mod & KEY_M_SHIFT))
|
||||||
|
@ -13,8 +13,8 @@ EditUp = up
|
|||||||
EditDown = down
|
EditDown = down
|
||||||
EditEnter = enter
|
EditEnter = enter
|
||||||
EditReturn = shift-enter
|
EditReturn = shift-enter
|
||||||
EditBackSpace = backspace
|
EditBackSpace = backspace, ctrl-h
|
||||||
EditDelete = delete
|
EditDelete = delete, ctrl-d
|
||||||
EditPageUp = pgup
|
EditPageUp = pgup
|
||||||
EditPageDown = pgdn
|
EditPageDown = pgdn
|
||||||
EditWordLeft = ctrl-left; ctrl-z
|
EditWordLeft = ctrl-left; ctrl-z
|
||||||
|
Loading…
Reference in New Issue
Block a user