can use numbers to navigate file picker.

This commit is contained in:
Kelvin Sherlock 2018-12-26 20:01:22 -05:00
parent ce3bb3d642
commit 44ee124882
1 changed files with 2 additions and 3 deletions

View File

@ -7,6 +7,7 @@
#include "defc.h"
#include <stdarg.h>
#include <ctype.h>
#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;