tweaks: join two lines, and add a clarifying comment

master
David Lawrence Ramsey 2018-10-15 14:46:15 -05:00 committed by Benno Schulenberg
parent dda9d4e357
commit 6ed0a12d80
2 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,7 @@ extern int controlleft, controlright;
extern int controlup, controldown;
extern int controlhome, controlend;
#ifndef NANO_TINY
extern int controldelete;
extern int controlshiftdelete;
extern int controldelete, controlshiftdelete;
extern int shiftleft, shiftright;
extern int shiftup, shiftdown;
extern int shiftcontrolleft, shiftcontrolright;

View File

@ -601,6 +601,7 @@ int parse_kbinput(WINDOW *win)
* Shift/Ctrl/Alt are being held together with them. */
unsigned char modifiers = 6;
/* Modifiers are: Alt (8), Ctrl (4), Shift (1). */
if (on_a_vt && ioctl(0, TIOCLINUX, &modifiers) >= 0) {
#ifndef NANO_TINY
/* Is Shift being held? */