Corretta gestione del tasto F1
git-svn-id: svn://10.65.10.50/trunk@3093 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d497355a7a
commit
79aac339e7
@ -245,14 +245,16 @@ static BOOLEAN event_hook(HWND hwnd,
|
|||||||
{
|
{
|
||||||
if ((lparam & (1<<29)) == 0) // Il tasto alt non e' premuto
|
if ((lparam & (1<<29)) == 0) // Il tasto alt non e' premuto
|
||||||
{
|
{
|
||||||
int sc = GetAsyncKeyState(VK_CONTROL); // Il tasto control non e' premuto
|
KEY k = K_F1;
|
||||||
int ss = GetAsyncKeyState(VK_SHIFT); // Il tasto shift non e' premuto
|
int sc = GetAsyncKeyState(VK_CONTROL); // Stato del tasto control
|
||||||
if (sc == 0 && ss == 0)
|
if (sc & 1) k += K_CTRL;
|
||||||
{
|
|
||||||
WINDOW win = cur_win();
|
int ss = GetAsyncKeyState(VK_SHIFT); // Stato del tasto shift
|
||||||
if (win != NULL_WIN)
|
if (ss & 1) k += K_SHIFT;
|
||||||
dispatch_e_char(win, K_F1);
|
|
||||||
}
|
WINDOW win = cur_win();
|
||||||
|
if (win != NULL_WIN)
|
||||||
|
dispatch_e_char(win, k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user