forked from KolibriOS/kolibrios
boxlib edit_box: do not display pgup, pgdown press
fptc: fix for Tab press when no field selected table 0.99: proper behaviour when cell is edited, use scancodes git-svn-id: svn://kolibrios.org@7507 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -484,25 +484,20 @@ void kos_PutPixel( Dword x, Dword y, Dword colour )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// function 2 ïîëó÷èòü êîä íàæàòîé êëàâèøè
|
||||
bool kos_GetKey( Byte &keyCode )
|
||||
bool kos_GetKeys( Dword &key_editbox, Byte &key_ascii, Byte &key_scancode )
|
||||
{
|
||||
Dword result;
|
||||
|
||||
//
|
||||
__asm{
|
||||
mov eax, 2
|
||||
int 0x40
|
||||
mov result, eax
|
||||
}
|
||||
//
|
||||
keyCode = result >> 8;
|
||||
//
|
||||
return ( result & 0xFF ) == 0;
|
||||
key_editbox = result;
|
||||
key_ascii = result >> 8;
|
||||
key_scancode = result >> 16;
|
||||
return ( key_ascii ) == 0;
|
||||
}
|
||||
|
||||
|
||||
// function 3 ïîëó÷èòü âðåìÿ
|
||||
Dword kos_GetSystemClock()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user