Shell: CapsLock and Shift keys

git-svn-id: svn://kolibrios.org@2174 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Albom
2011-09-12 16:54:25 +00:00
parent 9f2f10d775
commit de6e26f7d9
7 changed files with 55 additions and 3 deletions

View File

@@ -74,6 +74,13 @@ for (;;)
default:
if (CMD_POS < 255)
{
if ( kol_key_control() & 0x40 ) // åñëè âêëþ÷¸í CapsLock
if ( (kol_key_control() & 1) || (kol_key_control() & 2)) // åñëè íàæàòû øèôòû
key = tolower(key);
else
key = toupper(key);
CMD[CMD_POS] = key;
CMD_POS++;
printf("%c", key);