Add support for Home and End keys for moving

This commit is contained in:
phillbush
2020-09-16 21:48:46 -03:00
parent d3c2131250
commit 006c94ce9c
2 changed files with 38 additions and 20 deletions

View File

@@ -1,8 +1,7 @@
#define PROGNAME "xmenu"
/* macros for keyboard menu navigation */
#define ITEMPREV 0
#define ITEMNEXT 1
/* enum for keyboard menu navigation */
enum { ITEMPREV, ITEMNEXT, ITEMFIRST, ITEMLAST };
/* macros */
#define LEN(x) (sizeof (x) / sizeof (x[0]))