bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dialog: left/right arrow keys ignored in form window


From: Miroslav Lichvar
Subject: dialog: left/right arrow keys ignored in form window
Date: Tue, 23 Aug 2016 11:30:03 +0200
User-agent: Mutt/1.6.2 (2016-07-01)

Hi,

when using the --form option of dialog, the left and right arrow
keys can't be used for switching between the OK and Cancel buttons.
Apparently, this changed in dialog-1.1-20111018.

Adding the keys to NAVIGATE_BINDINGS in form.c seems to fix the
problem for me.

--- dialog-1.3-20160424/formbox.c.orig  2013-09-02 19:02:05.000000000 +0200
+++ dialog-1.3-20160424/formbox.c       2016-08-23 11:25:56.273045091 +0200
@@ -447,9 +447,11 @@ prev_valid_buttonindex(int state, int ex
        DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_BTAB ), \
        DLG_KEYS_DATA( DLGK_ITEM_NEXT,  CHR_NEXT ), \
        DLG_KEYS_DATA( DLGK_ITEM_NEXT,  KEY_DOWN ), \
+       DLG_KEYS_DATA( DLGK_ITEM_NEXT,  KEY_RIGHT ), \
        DLG_KEYS_DATA( DLGK_ITEM_NEXT,  KEY_NEXT ), \
        DLG_KEYS_DATA( DLGK_ITEM_PREV,  CHR_PREVIOUS ), \
        DLG_KEYS_DATA( DLGK_ITEM_PREV,  KEY_PREVIOUS ), \
+       DLG_KEYS_DATA( DLGK_ITEM_PREV,  KEY_LEFT ), \
        DLG_KEYS_DATA( DLGK_ITEM_PREV,  KEY_UP ), \
        DLG_KEYS_DATA( DLGK_PAGE_NEXT,  KEY_NPAGE ), \
        DLG_KEYS_DATA( DLGK_PAGE_PREV,  KEY_PPAGE )

-- 
Miroslav Lichvar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]