git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@614
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
Cvs code -
+- nano.c:
+ ABCD(), main()
+ - Add Alt-whatever-[a-d] support as well as Alt-whatever-[A-D].
- search.c:
do_replace()
- If we manage to make it in somehow with VIEW_MODE on, abort
switch(input)
{
case 'A':
+ case 'a':
return(KEY_UP);
case 'B':
+ case 'b':
return(KEY_DOWN);
case 'C':
+ case 'c':
return(KEY_RIGHT);
case 'D':
+ case 'd':
return(KEY_LEFT);
default:
return 0;
/* Alt-O, suddenly very important ;) */
case 79:
kbinput = wgetch(edit);
- if (kbinput <= 'D' && kbinput >= 'A')
+ if ((kbinput <= 'D' && kbinput >= 'A') ||
+ (kbinput <= 'd' && kbinput >= 'a'))
kbinput = ABCD(kbinput);
else if (kbinput <= 'z' && kbinput >= 'j')
print_numlock_warning();
case 'B':
case 'C':
case 'D':
+ case 'a':
+ case 'b':
+ case 'c':
+ case 'd':
kbinput = ABCD(kbinput);
break;
case 'H':