mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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;
|
||||
|
||||
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: {
|
||||
POINT point;
|
||||
GetCursorPos(&point);
|
||||
|
@ -506,6 +506,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
||||
}
|
||||
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: {
|
||||
POINT point;
|
||||
|
||||
|
@ -1817,6 +1817,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
||||
}
|
||||
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: {
|
||||
POINT point;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user