Skip to content

Commit

Permalink
check for TTY mode key output, first.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jun 27, 2019
1 parent db2bf52 commit 13483ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/keyboard.c
Expand Up @@ -29,8 +29,12 @@ void keyboard_main(int code, unsigned char shift)
{
unsigned char scan=code>>8;
unsigned char key=code&0xFF;

if (scan==0x1c)

if (TTY)
{
keyboard_out_tty(code&0xff);
}
else if (scan==0x1c)
{
// special case for SHIFT-NEXT
keyboard_out((shift==0x01 || shift==0x02) ? PKEY_NEXT1 : PKEY_NEXT);
Expand Down Expand Up @@ -95,10 +99,6 @@ void keyboard_main(int code, unsigned char shift)
// special case for CTRL-M (MICRO)
keyboard_out(PKEY_MICRO);
}
else if (TTY)
{
keyboard_out_tty(code&0xff);
}
else if (shift==0x05 || shift==0x06)
{
// Ctrl-Shift pressed
Expand Down

0 comments on commit 13483ed

Please sign in to comment.