lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNAReo0ACB_TbcCXu76OPeK6UQhWtAWOxGq=L88GZB5Tv8g@mail.gmail.com>
Date:   Wed, 1 Jun 2022 22:52:39 +0900
From:   Masahiro Yamada <masahiroy@...nel.org>
To:     Isak Ellmer <isak01@...il.com>
Cc:     Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] scripts: kconfig: nconf: make nconfig accept jk keybindings

On Wed, Jun 1, 2022 at 10:08 PM Isak Ellmer <isak01@...il.com> wrote:
>
> Make nconfig accept jk keybindings for movement in addition to arrow
> keys.
>
> Signed-off-by: Isak Ellmer <isak01@...il.com>
> ---

Applied to linux-kbuild.
Thanks.



>  scripts/kconfig/nconf.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
> index 7b371bd7fb36..3ba8b1af390f 100644
> --- a/scripts/kconfig/nconf.c
> +++ b/scripts/kconfig/nconf.c
> @@ -52,8 +52,8 @@ static const char nconf_global_help[] =
>  "\n"
>  "Menu navigation keys\n"
>  "----------------------------------------------------------------------\n"
> -"Linewise up                 <Up>\n"
> -"Linewise down               <Down>\n"
> +"Linewise up                 <Up>    <k>\n"
> +"Linewise down               <Down>  <j>\n"
>  "Pagewise up                 <Page Up>\n"
>  "Pagewise down               <Page Down>\n"
>  "First entry                 <Home>\n"
> @@ -1105,9 +1105,11 @@ static void conf(struct menu *menu)
>                                 break;
>                         switch (res) {
>                         case KEY_DOWN:
> +                       case 'j':
>                                 menu_driver(curses_menu, REQ_DOWN_ITEM);
>                                 break;
>                         case KEY_UP:
> +                       case 'k':
>                                 menu_driver(curses_menu, REQ_UP_ITEM);
>                                 break;
>                         case KEY_NPAGE:
> @@ -1287,9 +1289,11 @@ static void conf_choice(struct menu *menu)
>                                 break;
>                         switch (res) {
>                         case KEY_DOWN:
> +                       case 'j':
>                                 menu_driver(curses_menu, REQ_DOWN_ITEM);
>                                 break;
>                         case KEY_UP:
> +                       case 'k':
>                                 menu_driver(curses_menu, REQ_UP_ITEM);
>                                 break;
>                         case KEY_NPAGE:
> --
> 2.35.1
>


-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ