From 0da0c44f874de3fdd114511c212e75623c4d4439 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 28 Jan 2003 17:56:53 +0000 Subject: [PATCH] * (OptMenu): Add "Learn Keys". (OptMenuEmacs): Likewise. --- edit/ChangeLog | 5 +++++ edit/editmenu.c | 17 +++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index 69e3a2831..318a954db 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,8 @@ +2002-12-28 Pavel Roskin + + * (OptMenu): Add "Learn Keys". + (OptMenuEmacs): Likewise. + 2003-01-27 Andrew V. Samoilov * edit-widget.h (struct macro): Move definition ... diff --git a/edit/editmenu.c b/edit/editmenu.c index 9210d0234..c3124f469 100644 --- a/edit/editmenu.c +++ b/edit/editmenu.c @@ -28,6 +28,7 @@ #include "src/tty.h" /* KEY_F */ #include "src/key.h" /* XCTRL */ #include "src/main.h" /* drop_menus */ +#include "src/learn.h" /* learn_keys */ #include "edit-widget.h" #include "editcmddef.h" @@ -402,19 +403,19 @@ static menu_entry CmdMenuEmacs[] = static menu_entry OptMenu[] = { {' ', N_("&General... "), 'G', menu_options}, - {' ', N_("&Save mode..."), 'S', menu_save_mode_cmd} -#if 0 - {' ', N_("&Layout..."), 'L', menu_layout_cmd} -#endif + {' ', N_("&Save mode..."), 'S', menu_save_mode_cmd}, +#ifndef NATIVE_WIN32 + {' ', N_("learn &Keys..."), 'K', learn_keys} +#endif /* !NATIVE_WIN32 */ }; static menu_entry OptMenuEmacs[] = { {' ', N_("&General... "), 'G', menu_options}, - {' ', N_("&Save mode..."), 'S', menu_save_mode_cmd} -#if 0 - {' ', N_("&Layout..."), 'L', menu_layout_cmd} -#endif + {' ', N_("&Save mode..."), 'S', menu_save_mode_cmd}, +#ifndef NATIVE_WIN32 + {' ', N_("learn &Keys..."), 'K', learn_keys} +#endif /* !NATIVE_WIN32 */ }; #define menu_entries(x) sizeof(x)/sizeof(menu_entry)