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: <CAK7LNATfEuUeb3GJE1MF470wmBPZXM0ubrx0CjR51gmKethdgw@mail.gmail.com>
Date: Sat, 19 Oct 2024 02:27:47 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kconfig: nconf: Use TAB to cycle thru dialog buttons

On Mon, Oct 14, 2024 at 6:19 PM Thorsten Blum <thorsten.blum@...ux.dev> wrote:
>
> Add the ability to cycle through dialog buttons with the TAB key.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
> ---

Applied to linux-kbuild.
Thanks.


>  scripts/kconfig/nconf.gui.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/scripts/kconfig/nconf.gui.c b/scripts/kconfig/nconf.gui.c
> index 72b605efe549..aeac9e5b06ee 100644
> --- a/scripts/kconfig/nconf.gui.c
> +++ b/scripts/kconfig/nconf.gui.c
> @@ -277,6 +277,15 @@ int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...)
>                 case KEY_RIGHT:
>                         menu_driver(menu, REQ_RIGHT_ITEM);
>                         break;
> +               case 9: /* TAB */
> +                       if (btn_num > 1) {
> +                               /* cycle through buttons */
> +                               if (item_index(current_item(menu)) == btn_num-1)
> +                                       menu_driver(menu, REQ_FIRST_ITEM);
> +                               else
> +                                       menu_driver(menu, REQ_NEXT_ITEM);
> +                       }
> +                       break;
>                 case 10: /* ENTER */
>                 case 27: /* ESCAPE */
>                 case ' ':
> --
> 2.47.0
>


-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ