[PATCH] ui/ncurses: Interpret left/right keys as up/down

Cyril Bur cyrilbur at gmail.com
Tue May 10 08:50:11 AEST 2016


On Mon,  9 May 2016 11:56:51 +1000
Samuel Mendoza-Jonas <sam at mendozajonas.com> wrote:

THANKYOU!

> Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>

Reviewed-by: Cyril Bur <cyrilbur at gmail.com>

> ---
>  ui/ncurses/nc-widgets.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/ui/ncurses/nc-widgets.c b/ui/ncurses/nc-widgets.c
> index 98d30cc..c5c4cec 100644
> --- a/ui/ncurses/nc-widgets.c
> +++ b/ui/ncurses/nc-widgets.c
> @@ -1129,12 +1129,14 @@ bool widgetset_process_key(struct nc_widgetset *set, int key)
>  		tab = true;
>  		/* fall through */
>  	case KEY_UP:
> +	case KEY_LEFT:
>  		req = REQ_SPREV_FIELD;
>  		break;
>  	case '\t':
>  		tab = true;
>  		/* fall through */
>  	case KEY_DOWN:
> +	case KEY_RIGHT:
>  		req = REQ_SNEXT_FIELD;
>  		break;
>  	case KEY_PPAGE:



More information about the Petitboot mailing list