mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 13:14:44 +00:00
Avoid giving F10 and Alt keys to the system on Win32/Skia port
This commit is contained in:
parent
189ee56c4c
commit
a90a70bd1e
@ -339,9 +339,10 @@ namespace she {
|
|||||||
queueEvent(ev);
|
queueEvent(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_SYSKEYUP:
|
||||||
case WM_KEYUP: {
|
case WM_KEYUP: {
|
||||||
Event ev;
|
Event ev;
|
||||||
ev.setType(Event::KeyUp);
|
ev.setType(Event::KeyUp);
|
||||||
@ -349,7 +350,10 @@ namespace she {
|
|||||||
ev.setUnicodeChar(0);
|
ev.setUnicodeChar(0);
|
||||||
ev.setRepeat(lparam & 15);
|
ev.setRepeat(lparam & 15);
|
||||||
queueEvent(ev);
|
queueEvent(ev);
|
||||||
break;
|
|
||||||
|
// TODO If we use native menus, this message should be given
|
||||||
|
// to the DefWindowProc() in some cases (e.g. F10 or Alt keys)
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_DROPFILES: {
|
case WM_DROPFILES: {
|
||||||
|
Loading…
Reference in New Issue
Block a user