mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix alt key again
This commit is contained in:
parent
09b13f8356
commit
7d24174f65
@ -506,6 +506,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WM_SYSCOMMAND:
|
||||||
|
if(wparam==SC_KEYMENU) {
|
||||||
|
// if Alt is released (alone w/o other keys), defwindproc will send
|
||||||
|
// this command, which will 'activate' the title bar menu (we have none)
|
||||||
|
// and give focus to it. we dont want this to happen, so kill this msg
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_KEYDOWN: {
|
case WM_KEYDOWN: {
|
||||||
POINT point;
|
POINT point;
|
||||||
GetCursorPos(&point);
|
GetCursorPos(&point);
|
||||||
|
@ -506,6 +506,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WM_SYSCOMMAND:
|
||||||
|
if(wparam==SC_KEYMENU) {
|
||||||
|
// if Alt is released (alone w/o other keys), defwindproc will send
|
||||||
|
// this command, which will 'activate' the title bar menu (we have none)
|
||||||
|
// and give focus to it. we dont want this to happen, so kill this msg
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_KEYDOWN: {
|
case WM_KEYDOWN: {
|
||||||
POINT point;
|
POINT point;
|
||||||
|
|
||||||
|
@ -1817,6 +1817,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WM_SYSCOMMAND:
|
||||||
|
if(wparam==SC_KEYMENU) {
|
||||||
|
// if Alt is released (alone w/o other keys), defwindproc will send
|
||||||
|
// this command, which will 'activate' the title bar menu (we have none)
|
||||||
|
// and give focus to it. we dont want this to happen, so kill this msg
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_KEYDOWN: {
|
case WM_KEYDOWN: {
|
||||||
POINT point;
|
POINT point;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user