From 44ee12488249a85006efbba0d2bf31f56e858232 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 26 Dec 2018 20:01:22 -0500 Subject: [PATCH] can use numbers to navigate file picker. --- src/config.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index bc52f3c..cf406b7 100644 --- a/src/config.c +++ b/src/config.c @@ -7,6 +7,7 @@ #include "defc.h" #include +#include #include "config.h" #include "glog.h" #include "imagewriter.h" @@ -3065,9 +3066,7 @@ void cfg_file_handle_key(int key) { listhdrptr = &g_cfg_partitionlist; } - // can't hotkey numbers because it falsely matches PGUP/PGDN - if( (g_cfg_file_pathfield == 0) && - ((key >= 'a' && key <= 'z') || (key >= 'A' && key <= 'Z')) ) { + if( (g_cfg_file_pathfield == 0) && isalnum(key)) { /* jump to file starting with this letter */ g_cfg_file_match[0] = key; g_cfg_file_match[1] = 0;