Skip to content
Snippets Groups Projects
Commit 6862d828 authored by rswindell's avatar rswindell
Browse files

Removed Help menu item (F1/? key now works).

Added help support to uinput.
parent fe8c5a77
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar
if(option[cnt][0]==0)
break;
options=cnt;
freecnt=cnt+5; /* Help, Add, Delete, Copy, Paste */
freecnt=cnt+4; /* Add, Delete, Copy, Paste */
// Allocate and fill **it
it=(char **)MALLOC(sizeof(char *)*2*(freecnt));
......@@ -165,10 +165,6 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar
width+=1;
}
strcpy(it[cnt2++],"H");
strcpy(it[cnt2++],"Help");
cnt++;
if(mode&WIN_INS) {
strcpy(it[cnt2++],"A"); /* Changed from "I" */
strcpy(it[cnt2++],"Add New");
......@@ -228,7 +224,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar
}
if(ret==-1) /* ESC */
break;
if(ret==-2 || str[0]=='H') { /* Help */
if(ret==-2) { /* Help */
help();
continue;
}
......@@ -316,7 +312,8 @@ int uinput(int mode, char left, char top, char *prompt, char *outstr,
{
char str[256];
sprintf(str,"%.*s",sizeof(str)-1,outstr);
dialog_inputbox((char*)NULL, prompt, 9, max+4, outstr);
while(dialog_inputbox((char*)NULL, prompt, 9, max+4, outstr)==-2)
help();
if(strcmp(str,outstr))
api->changes=TRUE;
return strlen(outstr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment