Skip to content
Snippets Groups Projects
Commit 00fc14e4 authored by deuce's avatar deuce
Browse files

Do no exit on down-arrow on the goodbye item... must use enter.

parent fa20546b
No related branches found
No related tags found
No related merge requests found
......@@ -217,19 +217,23 @@ mainbar.add("|Info","I");
infomenu.add("|Text Files","T",25);
infomenu.add("\xc0\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xd9",undefined,undefined,"","");
mainbar.add("|Goodbye","G");
mainbar.add("String Command",";");
mainbar.add("Commands",";");
draw_main(true);
var next_key='';
while(1) {
var done=0;
var key=next_key;
var extra_select=false;
next_key='';
draw_main(false);
if(key=='')
key=mainbar.getval()
if(key==KEY_DOWN)
extra_select=false;
if(key==KEY_DOWN) {
key=mainbar.items[mainbar.current].retval;
extra_select=true;
}
switch(key) {
case ';':
mainbar.current=8;
......@@ -1120,7 +1124,8 @@ while(1) {
draw_main(false);
break;
case 'G':
exit(1);
if(!extra_select)
exit(1);
}
}
......
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