Add extra checks in macro engine.
[midnight-commander.git] / src / keybind-defaults.c
blob9e77c2d56d6ce11bd803d1d68e11ddfe379ad675
1 /*
2 Default values for keybinding engine
4 Copyright (C) 2009, 2010, 2011
5 The Free Software Foundation, Inc.
7 Written by:
8 Vitja Makarov, 2005
9 Ilia Maslakov <il.smind@gmail.com>, 2009, 2010
10 Andrew Borodin <aborodin@vmail.ru>, 2010, 2011
12 This file is part of the Midnight Commander.
14 The Midnight Commander is free software: you can redistribute it
15 and/or modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation, either version 3 of the License,
17 or (at your option) any later version.
19 The Midnight Commander is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program. If not, see <http://www.gnu.org/licenses/>.
28 #include <config.h>
30 #include "lib/global.h"
31 #include "lib/widget.h" /* dialog_map, input_map, listbox_map */
33 #include "keybind-defaults.h"
35 /*** global variables ****************************************************************************/
37 GArray *main_keymap = NULL;
38 GArray *main_x_keymap = NULL;
39 GArray *panel_keymap = NULL;
40 GArray *dialog_keymap = NULL;
41 GArray *input_keymap = NULL;
42 GArray *listbox_keymap = NULL;
43 GArray *tree_keymap = NULL;
44 GArray *help_keymap = NULL;
45 #ifdef USE_INTERNAL_EDIT
46 GArray *editor_keymap = NULL;
47 GArray *editor_x_keymap = NULL;
48 #endif
49 GArray *viewer_keymap = NULL;
50 GArray *viewer_hex_keymap = NULL;
51 #ifdef USE_DIFF_VIEW
52 GArray *diff_keymap = NULL;
53 #endif
55 const global_keymap_t *main_map = NULL;
56 const global_keymap_t *main_x_map = NULL;
57 const global_keymap_t *panel_map = NULL;
58 const global_keymap_t *tree_map = NULL;
59 const global_keymap_t *help_map = NULL;
61 #ifdef USE_INTERNAL_EDIT
62 const global_keymap_t *editor_map = NULL;
63 const global_keymap_t *editor_x_map = NULL;
64 #endif
65 const global_keymap_t *viewer_map = NULL;
66 const global_keymap_t *viewer_hex_map = NULL;
67 #ifdef USE_DIFF_VIEW
68 const global_keymap_t *diff_map = NULL;
69 #endif
71 /*** file scope macro definitions ****************************************************************/
73 /*** file scope type declarations ****************************************************************/
75 /* default keymaps in ini (key=value) format */
76 typedef struct global_keymap_ini_t
78 const char *key;
79 const char *value;
80 } global_keymap_ini_t;
82 /*** file scope variables ************************************************************************/
84 /* midnight */
85 static const global_keymap_ini_t default_main_keymap[] = {
86 {"Help", "f1"},
87 {"UserMenu", "f2"},
88 {"View", "f3"},
89 {"Edit", "f4"},
90 {"Copy", "f5"},
91 {"Move", "f6"},
92 {"MakeDir", "f7"},
93 {"Delete", "f8"},
94 {"Menu", "f9"},
95 {"Quit", "f10"},
96 {"MenuLastSelected", "f19"},
97 {"QuitQuiet", "f20"},
98 {"History", "alt-h"},
99 {"DirSize", "ctrl-space"},
100 /* Copy useful information to the command line */
101 {"PutCurrentPath", "alt-a"},
102 {"PutOtherPath", "alt-shift-a"},
103 {"CdQuick", "alt-c"},
104 /* To access the directory hotlist */
105 {"HotList", "ctrl-backspace"},
106 /* Suspend */
107 {"Suspend", "ctrl-z"},
108 /* The filtered view command */
109 {"ViewFiltered", "alt-exclamation"},
110 /* Find file */
111 {"Find", "alt-question"},
112 /* Panel refresh */
113 {"Reread", "ctrl-r"},
114 /* Switch listing between long, user defined and full formats */
115 {"PanelListingSwitch", "alt-t"},
116 /* Swap panels */
117 {"Swap", "ctrl-u"},
118 /* View output */
119 {"Shell", "ctrl-o"},
120 {"ShowHidden", "alt-dot"},
121 {"SplitVertHoriz", "alt-comma"},
122 {"ExtendedKeyMap", "ctrl-x"},
123 /* Select/unselect group */
124 {"Select", "kpplus"},
125 {"Unselect", "kpminus"},
126 {"SelectInvert", "kpasterisk"},
127 /* List of screens */
128 {"ScreenList", "alt-prime"},
129 {NULL, NULL}
132 static const global_keymap_ini_t default_main_x_keymap[] = {
133 {"CompareDirs", "d"},
134 #ifdef USE_DIFF_VIEW
135 {"CompareFiles", "ctrl-d"},
136 #endif /* USE_DIFF_VIEW */
137 #ifdef ENABLE_VFS
138 {"VfsList", "a"},
139 #endif /* ENABLE_VFS */
140 {"PutCurrentPath", "p"},
141 {"PutOtherPath", "ctrl-p"},
142 {"PutCurrentTagged", "t"},
143 {"PutOtherTagged", "ctrl-t"},
144 {"ChangeMode", "c"},
145 {"ChangeOwn", "o"},
146 {"PutCurrentLink", "r"},
147 {"PutOtherLink", "ctrl-r"},
148 {"Link", "l"},
149 {"LinkSymbolic", "s"},
150 {"LinkSymbolicRelative", "v"},
151 {"LinkSymbolicEdit", "ctrl-s"},
152 {"PanelInfo", "i"},
153 {"PanelQuickView", "q"},
154 {"HotListAdd", "h"},
155 #ifdef ENABLE_BACKGROUND
156 {"Jobs", "j"},
157 #endif /* ENABLE_BACKGROUND */
158 {"ExternalPanelize", "!"},
159 {NULL, NULL}
162 /* panel */
163 static const global_keymap_ini_t default_panel_keymap[] = {
164 {"PanelOtherCd", "alt-o"},
165 {"PanelOtherCdLink", "alt-l"},
166 {"CopySingle", "f15"},
167 {"DeleteSingle", "f18"},
168 {"Enter", "enter"},
169 {"EditNew", "f14"},
170 {"MoveSingle", "f16"},
171 {"SelectInvert", "alt-asterisk"},
172 {"Select", "alt-plus"},
173 {"Unselect", "alt-minus"},
174 {"ViewRaw", "f13"},
175 {"CdChild", "ctrl-pgdn"},
176 {"CdParent", "ctrl-pgup"},
177 {"History", "alt-shift-h"},
178 {"HistoryNext", "alt-u"},
179 {"HistoryPrev", "alt-y"},
180 {"BottomOnScreen", "alt-j"},
181 {"MiddleOnScreen", "alt-r"},
182 {"TopOnScreen", "alt-g"},
183 {"Mark", "insert; ctrl-t"},
184 {"MarkDown", "shift-down"},
185 {"MarkUp", "shift-up"},
186 {"Up", "up; ctrl-p"},
187 {"Down", "down; ctrl-n"},
188 {"Left", "left"},
189 {"Right", "right"},
190 {"Top", "alt-lt; home; a1"},
191 {"Bottom", "alt-gt; end; c1"},
192 {"PageDown", "pgdn; ctrl-v"},
193 {"PageUp", "pgup; alt-v"},
194 #ifdef HAVE_CHARSET
195 {"SelectCodepage", "alt-e"},
196 #endif
197 {"Search", "ctrl-s; alt-s"},
198 {"PanelOtherSync", "alt-i"},
199 {NULL, NULL}
202 /* dialog */
203 static const global_keymap_ini_t default_dialog_keymap[] = {
204 {"Ok", "enter"},
205 {"Cancel", "f10; esc; ctrl-g"},
206 {"Up", "up; left"},
207 {"Down", "down; right"},
208 #if 0
209 {"Left", "up; left"},
210 {"Right", "down; right"},
211 #endif
212 {"Help", "f1"},
213 {"Suspend", "ctrl-z"},
214 {"Refresh", "ctrl-l"},
215 {"ScreenList", "alt-prime"},
216 {"ScreenNext", "alt-rbrace"},
217 {"ScreenPrev", "alt-lbrace"},
218 {NULL, NULL}
221 /* input line */
222 static const global_keymap_ini_t default_input_keymap[] = {
223 /* Motion */
224 {"Home", "ctrl-a; alt-lt; home; a1"},
225 {"End", "ctrl-e; alt-gt; end; c1"},
226 {"Left", "left; alt-left; ctrl-b"},
227 {"Right", "right; alt-right; ctrl-f"},
228 {"WordLeft", "ctrl-left; alt-b"},
229 {"WordRight", "ctrl-right; alt-f"},
230 /* Mark */
231 {"MarkLeft", "shift-left"},
232 {"MarkRight", "shift-right"},
233 {"MarkToWordBegin", "ctrl-shift-left"},
234 {"MarkToWordEnd", "ctrl-shift-right"},
235 {"MarkToHome", "shift-home"},
236 {"MarkToEnd", "shift-end"},
237 /* Editing */
238 {"Backspace", "backspace; ctrl-h"},
239 {"Delete", "delete; ctrl-d"},
240 {"DeleteToWordEnd", "alt-d"},
241 {"DeleteToWordBegin", "alt-backspace"},
242 /* Region manipulation */
243 {"Remove", "ctrl-w"},
244 {"Store", "alt-w"},
245 {"Yank", "ctrl-y"},
246 {"DeleteToEnd", "ctrl-k"},
247 /* History */
248 {"History", "alt-h"},
249 {"HistoryPrev", "alt-p; ctrl-down"},
250 {"HistoryNext", "alt-n; ctrl-up"},
251 /* Completion */
252 {"Complete", "alt-tab"},
253 {NULL, NULL}
256 /* listbox */
257 static const global_keymap_ini_t default_listbox_keymap[] = {
258 {"Up", "up; ctrl-p"},
259 {"Down", "down; ctrl-n"},
260 {"Top", "home; alt-lt; a1"},
261 {"Bottom", "end; alt-gt; c1"},
262 {"PageUp", "pgup; alt-v"},
263 {"PageDown", "pgdn; ctrl-v"},
264 {"Delete", "delete; d"},
265 {"Clear", "shift-delete; shift-d"},
266 {NULL, NULL}
269 /* tree */
270 static const global_keymap_ini_t default_tree_keymap[] = {
271 {"Help = f1"},
272 {"Rescan = f2; ctrl-r"},
273 {"Forget = f3"},
274 {"ToggleNavigation = f4"},
275 {"Copy = f5"},
276 {"Move = f6"},
277 #if 0
278 {"MakeDir", "f7"},
279 #endif
280 {"Delete", "f8; delete"},
281 {"Up", "up; ctrl-p"},
282 {"Down", "down; ctrl-n"},
283 {"Left", "left"},
284 {"Right", "right"},
285 {"Top", "home; alt-lt; a1"},
286 {"Bottom", "end; alt-gt; c1"},
287 {"PageUp", "pgup; alt-v"},
288 {"PageDown", "pgdn; ctrl-v"},
289 {"Enter", "enter"},
290 {"Search", "ctrl-s; alt-s"},
291 {NULL, NULL}
294 /* help */
295 static const global_keymap_ini_t default_help_keymap[] = {
296 {"Help", "f1"},
297 {"Index", "f2; c"},
298 {"Back", "f3; left; l"},
299 {"Quit", "f10; esc"},
300 {"Up", "up; ctrl-p"},
301 {"Down", "down; ctrl-n"},
302 {"PageDown", "f; space; pgdn; ctrl-v"},
303 {"PageUp", "b; pgup; alt-v; backspace"},
304 {"HalfPageDown", "d"},
305 {"HalfPageUp", "u"},
306 {"Top", "home; ctrl-home; ctrl-pgup; a1; alt-lt; g"},
307 {"Bottom", "end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g"},
308 {"Enter", "right; enter"},
309 {"LinkNext", "tab"},
310 {"LinkPrev", "alt-tab"},
311 {"NodeNext", "n"},
312 {"NodePrev", "p"},
313 {NULL, NULL}
316 #ifdef USE_INTERNAL_EDIT
317 static const global_keymap_ini_t default_editor_keymap[] = {
318 {"Enter", "enter"},
319 {"Return", "shift-enter"}, /* useful for pasting multiline text */
320 {"Tab", "tab"},
321 {"BackSpace", "backspace; ctrl-h"},
322 {"Delete", "delete; ctrl-d"},
323 {"Left", "left"},
324 {"Right", "right"},
325 {"Up", "up"},
326 {"Down", "down"},
327 {"Home", "home"},
328 {"End", "end"},
329 {"PageUp", "pgup"},
330 {"PageDown", "pgdn"},
331 {"WordLeft", "ctrl-left; ctrl-z"},
332 {"WordRight", "ctrl-right; ctrl-x"},
333 {"InsertOverwrite", "insert"},
334 {"Help", "f1"},
335 {"Save", "f2"},
336 {"Mark", "f3"},
337 {"Replace", "f4"},
338 {"Copy", "f5"},
339 {"Move", "f6"},
340 {"Search", "f7"},
341 {"Remove", "f8; ctrl-delete"},
342 {"Menu", "f9"},
343 {"Quit", "f10; esc"},
344 {"UserMenu", "f11"},
345 {"SaveAs", "f12; ctrl-f2"},
346 {"MarkColumn", "f13"},
347 {"ReplaceContinue", "f14; ctrl-f4"},
348 {"InsertFile", "f15"},
349 {"SearchContinue", "f17; ctrl-f7"},
350 {"EditNew", "ctrl-n"},
351 {"DeleteToWordBegin", "alt-backspace"},
352 {"DeleteToWordEnd", "alt-d"},
353 {"DeleteLine", "ctrl-y"},
354 {"DeleteToEnd", "ctrl-k"},
355 {"Undo", "ctrl-u; ctrl-backspace"},
356 {"Redo", "alt-r"},
357 #ifdef HAVE_CHARSET
358 {"SelectCodepage", "alt-e"},
359 #endif
360 {"Goto", "alt-l; alt-shift-l"},
361 {"Refresh", "ctrl-l"},
362 {"Shell", "ctrl-o"},
363 {"Top", "ctrl-home; ctrl-pgup; alt-lt"},
364 {"Bottom", "ctrl-end; ctrl-pgdn; alt-gt"},
365 {"TopOnScreen", "ctrl-pgup"},
366 {"BottomOnScreen", "ctrl-pgdn"},
367 {"ScrollUp", "ctrl-up"},
368 {"ScrollDown", "ctrl-down"},
369 {"Store", "ctrl-insert"},
370 {"Paste", "shift-insert"},
371 {"Cut", "shift-delete"},
372 {"BlockSave", "ctrl-f"},
373 {"MarkLeft", "shift-left"},
374 {"MarkRight", "shift-right"},
375 {"MarkUp", "shift-up"},
376 {"MarkDown", "shift-down"},
377 {"MarkPageUp", "shift-pgup"},
378 {"MarkPageDown", "shift-pgdn"},
379 {"MarkToWordBegin", "ctrl-shift-left"},
380 {"MarkToWordEnd", "ctrl-shift-right"},
381 {"MarkToHome", "shift-home"},
382 {"MarkToEnd", "shift-end"},
383 {"MarkToFileBegin", "ctrl-shift-home"},
384 {"MarkToFileEnd", "ctrl-shift-end"},
385 {"MarkToPageBegin", "ctrl-shift-pgup"},
386 {"MarkToPageEnd", "ctrl-shift-pgdn"},
387 {"MarkScrollUp", "ctrl-shift-up"},
388 {"MarkScrollDown", "ctrl-shift-down"},
389 {"MarkColumnLeft", "alt-left"},
390 {"MarkColumnRight", "alt-right"},
391 {"MarkColumnUp", "alt-up"},
392 {"MarkColumnDown", "alt-down"},
393 {"MarkColumnPageUp", "alt-pgup"},
394 {"MarkColumnPageDown", "alt-pgdn"},
395 {"InsertLiteral", "ctrl-q"},
396 {"Complete", "alt-tab"},
397 {"MatchBracket", "alt-b"},
398 {"ParagraphFormat", "alt-p"},
399 {"Bookmark", "alt-k"},
400 {"BookmarkFlush", "alt-o"},
401 {"BookmarkNext", "alt-j"},
402 {"BookmarkPrev", "alt-i"},
403 {"MacroStartStopRecord", "ctrl-r"},
404 {"MacroExecute", "ctrl-a"},
405 {"ShowNumbers", "alt-n"},
406 {"ShowTabTws", "alt-underline"},
407 {"SyntaxOnOff", "ctrl-s"},
408 {"Find", "alt-enter"},
409 {"FilePrev", "alt-minus"},
410 {"FileNext", "alt-plus"},
411 {"Sort", "alt-t"},
412 {"Mail", "alt-m"},
413 {"ExternalCommand", "alt-u"},
414 {"ExtendedKeyMap", "ctrl-x"},
415 {NULL, NULL}
418 /* emacs keyboard layout emulation */
419 static const global_keymap_ini_t default_editor_x_keymap[] = {
420 {NULL, NULL}
422 #endif /* USE_INTERNAL_EDIT */
424 /* viewer */
425 static const global_keymap_ini_t default_viewer_keymap[] = {
426 {"Help", "f1"},
427 {"WrapMode", "f2"},
428 {"Quit", "f3; f10; q; esc"},
429 {"HexMode", "f4"},
430 {"Goto", "f5"},
431 {"Search", "f7"},
432 {"SearchContinue", "f17; n"},
433 {"MagicMode", "f8"},
434 {"NroffMode", "f9"},
435 {"Home", "ctrl-a"},
436 {"End", "ctrl-e"},
437 {"Left", "h; left"},
438 {"Right", "l; right"},
439 {"LeftQuick", "ctrl-left"},
440 {"RightQuick", "ctrl-right"},
441 {"Up", "k; y; insert; up; ctrl-p"},
442 {"Down", "j; e; delete; down; enter; ctrl-n"},
443 {"PageDown", "f; space; pgdn; ctrl-v"},
444 {"PageUp", "b; pgup; alt-v; backspace"},
445 {"HalfPageDown", "d"},
446 {"HalfPageUp", "u"},
447 {"Top", "home; ctrl-home; ctrl-pgup; a1; alt-lt; g"},
448 {"Bottom", "end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g"},
449 {"BookmarkGoto", "m"},
450 {"Bookmark", "r"},
451 {"FileNext", "ctrl-f"},
452 {"FilePrev", "ctrl-b"},
453 #ifdef HAVE_CHARSET
454 {"SelectCodepage", "alt-e"},
455 #endif
456 {"Shell", "ctrl-o"},
457 {"Ruler", "alt-r"},
458 {"SearchForward", "slash"},
459 {"SearchBackward", "question"},
460 {"SearchForwardContinue", "ctrl-s"},
461 {"SearchBackwardContinue", "ctrl-r"},
462 {NULL, NULL}
465 /* hex viewer */
466 static const global_keymap_ini_t default_viewer_hex_keymap[] = {
467 {"Help", "f1"},
468 {"HexEditMode", "f2"},
469 {"Quit", "f3; f10; q; esc"},
470 {"HexMode", "f4"},
471 {"Goto", "f5"},
472 {"Save", "f6"},
473 {"Search", "f7"},
474 {"SearchContinue", "f17; n"},
475 {"MagicMode", "f8"},
476 {"NroffMode", "f9"},
477 {"ToggleNavigation", "tab"},
478 {"Home", "ctrl-a; home"},
479 {"End", "ctrl-e; end"},
480 {"Left", "b; left"},
481 {"Right", "f; right"},
482 {"Up", "k; y; up"},
483 {"Down", "j; delete; down"},
484 {"PageDown", "pgdn; ctrl-v"},
485 {"PageUp", "pgup; alt-v"},
486 {"Top", "ctrl-home; ctrl-pgup; a1; alt-lt; g"},
487 {"Bottom", "ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g"},
488 #ifdef HAVE_CHARSET
489 {"SelectCodepage", "alt-e"},
490 #endif
491 {"Shell", "ctrl-o"},
492 {"SearchForward", "slash"},
493 {"SearchBackward", "question"},
494 {"SearchForwardContinue", "ctrl-s"},
495 {"SearchBackwardContinue", "ctrl-r"},
496 {NULL, NULL}
499 #ifdef USE_DIFF_VIEW
500 /* diff viewer */
501 static const global_keymap_ini_t default_diff_keymap[] = {
502 {"ShowSymbols", "alt-s; s"},
503 {"ShowNumbers", "alt-n; l"},
504 {"SplitFull", "f"},
505 {"SplitEqual", "equal"},
506 {"SplitMore", "gt"},
507 {"SplitLess", "lt"},
508 {"Tab2", "2"},
509 {"Tab3", "3"},
510 {"Tab4", "4"},
511 {"Tab8", "8"},
512 {"Swap", "ctrl-u"},
513 {"Redo", "ctrl-r"},
514 {"HunkNext", "n; enter; space"},
515 {"HunkPrev", "p; backspace"},
516 {"Goto", "g; shift-g"},
517 {"Save", "f2"},
518 {"Edit", "f4"},
519 {"EditOther", "f14"},
520 {"Merge", "f5"},
521 {"Search", "f7"},
522 {"SearchContinue", "f17"},
523 {"Options", "f9"},
524 {"Top", "ctrl-home"},
525 {"Bottom", "ctrl-end"},
526 {"Down", "down"},
527 {"Up", "up"},
528 {"LeftQuick", "ctrl-left"},
529 {"RightQuick", "ctrl-right"},
530 {"Left", "left"},
531 {"Right", "right"},
532 {"PageDown", "pgdn"},
533 {"PageUp", "pgup"},
534 {"Home", "home"},
535 {"End", "end"},
536 {"Help", "f1"},
537 {"Quit", "f10; q; shift-q; esc"},
538 #ifdef HAVE_CHARSET
539 {"SelectCodepage", "alt-e"},
540 #endif
541 {"Shell", "ctrl-o"},
542 {NULL, NULL}
544 #endif
546 /*** file scope macro definitions ****************************************************************/
548 /*** file scope type declarations ****************************************************************/
550 /*** file scope variables ************************************************************************/
552 /*** file scope functions ************************************************************************/
553 /* --------------------------------------------------------------------------------------------- */
555 static void
556 create_default_keymap_section (mc_config_t * keymap, const char *section,
557 const global_keymap_ini_t * k)
559 size_t i;
561 for (i = 0; k[i].key != NULL; i++)
562 mc_config_set_string_raw (keymap, section, k[i].key, k[i].value);
565 /* --------------------------------------------------------------------------------------------- */
566 /*** public functions ****************************************************************************/
567 /* --------------------------------------------------------------------------------------------- */
569 mc_config_t *
570 create_default_keymap (void)
572 mc_config_t *keymap;
574 keymap = mc_config_init (NULL, TRUE);
576 create_default_keymap_section (keymap, KEYMAP_SECTION_MAIN, default_main_keymap);
577 create_default_keymap_section (keymap, KEYMAP_SECTION_MAIN_EXT, default_main_x_keymap);
578 create_default_keymap_section (keymap, KEYMAP_SECTION_PANEL, default_panel_keymap);
579 create_default_keymap_section (keymap, KEYMAP_SECTION_DIALOG, default_dialog_keymap);
580 create_default_keymap_section (keymap, KEYMAP_SECTION_INPUT, default_input_keymap);
581 create_default_keymap_section (keymap, KEYMAP_SECTION_LISTBOX, default_listbox_keymap);
582 create_default_keymap_section (keymap, KEYMAP_SECTION_TREE, default_tree_keymap);
583 create_default_keymap_section (keymap, KEYMAP_SECTION_HELP, default_help_keymap);
584 #ifdef USE_INTERNAL_EDIT
585 create_default_keymap_section (keymap, KEYMAP_SECTION_EDITOR, default_editor_keymap);
586 create_default_keymap_section (keymap, KEYMAP_SECTION_EDITOR_EXT, default_editor_x_keymap);
587 #endif
588 create_default_keymap_section (keymap, KEYMAP_SECTION_VIEWER, default_viewer_keymap);
589 create_default_keymap_section (keymap, KEYMAP_SECTION_VIEWER_HEX, default_viewer_hex_keymap);
590 #ifdef USE_DIFF_VIEW
591 create_default_keymap_section (keymap, KEYMAP_SECTION_DIFFVIEWER, default_diff_keymap);
592 #endif
594 return keymap;