Skip to content

Commit

Permalink
Merge pull request #150 from Bone-Project/dev_ashish
Browse files Browse the repository at this point in the history
Fix #105
  • Loading branch information
double-fault authored Jan 12, 2017
2 parents 9cfcf6e + a1eccd1 commit 2aca490
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions platform/pc/drv/ps2/kbd/kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,26 @@ void key_handler_util(int key)
if(kbd_info.is_caps == false && print_scank == true && active_scank == true)
{
inc_al();
printk("%c", key);
if (kbd_info.is_shift == true) {
printk("%c", toupper(key));
}
else if (kbd_info.is_shift == false) {
printk ("%c", tolower (key));
}
wait_until_enter(key);
}
else if(kbd_info.is_caps == true && print_scank == true && active_scank == true)
{
inc_al();
if(kbd_info.is_shift == true)
printk("%c", tolower(key));
{
key = tolower (key);
}
else
printk("%c", toupper(key));
{
key = toupper (key);
}
printk ("%c", key);
wait_until_enter(key);
}

Expand Down

0 comments on commit 2aca490

Please sign in to comment.