mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-12-26 11:26:05 +00:00
Add more invalid chars
This commit is contained in:
parent
b9776882fd
commit
c45be1258a
2 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ menu_entry fs_menu_folder[] = {
|
|||
{"\nBack", COLOR_WHITE, ISMENU},
|
||||
{"Return to main menu\n", COLOR_BLUE, ISMENU},
|
||||
{"Copy to clipboard", COLOR_VIOLET, ISMENU},
|
||||
{"Delete folder", COLOR_RED, ISMENU},
|
||||
{"Delete folder\n", COLOR_RED, ISMENU},
|
||||
{"Rename folder", COLOR_BLUE, ISMENU},
|
||||
{"Create folder", COLOR_BLUE, ISMENU}
|
||||
};
|
||||
|
|
|
@ -100,13 +100,13 @@ char *utils_InputText(char *start, int maxLen){
|
|||
|
||||
if (input->buttons & (KEY_LDOWN | KEY_RDOWN) && buff[currentPos] < 126){
|
||||
temp = ++buff[currentPos];
|
||||
while (temp == '\\' || temp == '/' || temp == ':' || temp == '*' || temp == '?' || temp == '"' || temp == '<' || temp == '>' || temp == '|')
|
||||
while (strchr("\\\"*/:<=>?|+;=[]", temp) != NULL)
|
||||
temp = ++buff[currentPos];
|
||||
}
|
||||
|
||||
if (input->buttons & (KEY_LUP | KEY_RUP) && buff[currentPos] > 32){
|
||||
temp = --buff[currentPos];
|
||||
while (temp == '\\' || temp == '/' || temp == ':' || temp == '*' || temp == '?' || temp == '"' || temp == '<' || temp == '>' || temp == '|')
|
||||
while (strchr("\\\"*/:<=>?|+;=[]", temp) != NULL)
|
||||
temp = --buff[currentPos];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue