mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Many shortcuts were fixed.
Ticket #1764: * fxed shortcuts for select/unselect/reverse selection of file group; * removed 'C-x C-c' default shortcut for Quit command. Also fixed some emacs-like keybindings for editor and viewer. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d8130a82a3
commit
5e68b69020
@ -233,7 +233,7 @@ CmdCopyOtherPathname = alt-shift-a
|
||||
CmdFilteredView = alt-exclamation
|
||||
CmdSelect = kpplus
|
||||
CmdUnselect = kpminus
|
||||
CmdReverseSelection = alt-kpasterisk
|
||||
CmdReverseSelection = kpasterisk
|
||||
ExtMap1 = ctrl-x
|
||||
|
||||
[main:xmap]
|
||||
|
@ -60,8 +60,8 @@ EditBeginningOfTextHighlight = ctrl-shift-home
|
||||
EditEndOfTextHighlight = ctrl-shift-end
|
||||
EditBeginPageHighlight = ctrl-shift-pgup
|
||||
EditEndPageHighlight = ctrl-shift-pgdn
|
||||
EditScrollUpHighlight =
|
||||
EditScrollDownHighlight =
|
||||
EditScrollUpHighlight = ctrl-shift-up
|
||||
EditScrollDownHighlight = ctrl-shift-down
|
||||
EditParagraphUpHighlight =
|
||||
EditParagraphDownHighlight =
|
||||
|
||||
@ -170,8 +170,7 @@ ViewGoto = f5
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewContinueSearch = ctrl-r; ctrl-s; f17
|
||||
ViewContinueSearch = ctrl-r; ctrl-s; f17; n
|
||||
ViewMoveToBol = ctrl-a
|
||||
ViewMoveToEol = ctrl-e
|
||||
ViewMoveLeft = h; left
|
||||
@ -238,7 +237,7 @@ CmdCopyOtherPathname = alt-shift-a
|
||||
CmdFilteredView = alt-exclamation
|
||||
CmdSelect = kpplus
|
||||
CmdUnselect = kpminus
|
||||
CmdReverseSelection = alt-kpasterisk
|
||||
CmdReverseSelection = kpasterisk
|
||||
ExtMap1 = ctrl-x
|
||||
|
||||
[main:xmap]
|
||||
|
@ -762,8 +762,8 @@ const global_keymap_t default_panel_keymap[] = {
|
||||
{ KEY_F (14), CK_PanelCmdEditNew, "S-F4" },
|
||||
{ KEY_F (16), CK_PanelCmdRenameLocal, "S-F6" },
|
||||
{ ALT ('*'), CK_PanelCmdReverseSelection, "M-*" },
|
||||
{ KEY_KP_ADD, CK_PanelCmdSelect, "Gray+" },
|
||||
{ KEY_KP_SUBTRACT, CK_PanelCmdUnselect, "Gray-" },
|
||||
{ KEY_KP_ADD, CK_PanelCmdSelect, "M-+" },
|
||||
{ KEY_KP_SUBTRACT, CK_PanelCmdUnselect, "M--" },
|
||||
{ KEY_F (13), CK_PanelCmdViewSimple, "S-F3" },
|
||||
{ KEY_M_CTRL | KEY_NPAGE, CK_PanelCtrlNextPage, "C-PgDn" },
|
||||
{ KEY_M_CTRL | KEY_PPAGE, CK_PanelCtrlPrevPage, "C-PgUp" },
|
||||
@ -830,14 +830,13 @@ const global_keymap_t default_main_map[] = {
|
||||
{ ALT ('.'), CK_ToggleShowHidden, "M-." },
|
||||
{ XCTRL ('x'), CK_StartExtMap1, "C-x" },
|
||||
/* Select/unselect group */
|
||||
{ ALT ('*'), CK_SelectCmd, "M-*" },
|
||||
{ KEY_KP_ADD, CK_UnselectCmd, "Gray+" },
|
||||
{ KEY_KP_SUBTRACT, CK_ReverseSelectionCmd, "Gray-" },
|
||||
{ KEY_KP_ADD, CK_SelectCmd, "+" },
|
||||
{ KEY_KP_SUBTRACT, CK_UnselectCmd, "-" },
|
||||
{ ALT ('*'), CK_ReverseSelectionCmd, "*" },
|
||||
{ 0, CK_Ignore_Key, "" }
|
||||
};
|
||||
|
||||
const global_keymap_t default_main_x_map[] = {
|
||||
{ XCTRL ('c'), CK_QuitCmd, "C-c" },
|
||||
{ 'd', CK_CompareDirsCmd, "d" },
|
||||
#ifdef USE_VFS
|
||||
{ 'a', CK_ReselectVfs, "a"},
|
||||
|
@ -128,10 +128,10 @@ const key_code_name_t key_name_conv_tab[] = {
|
||||
{ KEY_IC, "insert", N_("Insert key"), "Ins" },
|
||||
{ KEY_DC, "delete", N_("Delete key"), "Del" },
|
||||
{ ALT ('\t'), "complete", N_("Completion/M-tab"), "Meta-Tab" },
|
||||
{ KEY_KP_ADD, "kpplus", N_("+ on keypad"), "Gray+" },
|
||||
{ KEY_KP_SUBTRACT, "kpminus", N_("- on keypad"), "Gray-" },
|
||||
{ KEY_KP_ADD, "kpplus", N_("+ on keypad"), "+" },
|
||||
{ KEY_KP_SUBTRACT, "kpminus", N_("- on keypad"), "-" },
|
||||
{ (int) '/', "kpslash", N_("Slash on keypad"), "/" },
|
||||
{ KEY_KP_MULTIPLY, "kpasterisk", N_("* on keypad"), "Gray*" },
|
||||
{ KEY_KP_MULTIPLY, "kpasterisk", N_("* on keypad"), "*" },
|
||||
|
||||
/* From here on, these won't be shown in Learn keys (no space) */
|
||||
{ ESC_CHAR, "escape", N_("Escape key"), "Esc" },
|
||||
|
Loading…
Reference in New Issue
Block a user