ui/ncurses: Interpret left/right keys as up/down
diff mbox

Message ID 1462759011-19265-1-git-send-email-sam@mendozajonas.com
State Accepted
Headers show

Commit Message

samjonas May 9, 2016, 1:56 a.m. UTC
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
---
 ui/ncurses/nc-widgets.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Cyril Bur May 9, 2016, 10:50 p.m. UTC | #1
On Mon,  9 May 2016 11:56:51 +1000
Samuel Mendoza-Jonas <sam@mendozajonas.com> wrote:

THANKYOU!

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

Reviewed-by: Cyril Bur <cyrilbur@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:

Patch
diff mbox

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: