SFML community forums

General => Feature requests => Topic started by: nitram_cero on December 15, 2008, 04:57:57 am

Title: Releasing Left-Alt key in windowed mode looses focus.
Post by: nitram_cero on December 15, 2008, 04:57:57 am
Releasing Left-Alt key in windowed mode looses focus.

I think it has to do with the application icon's default menu in Windows (you know: Restore, Move, Minimize, Maximize & Close, that menu)

Regards
-Martín
Title: Releasing Left-Alt key in windowed mode looses focus.
Post by: Laurent on December 15, 2008, 07:47:50 am
It's the default behaviour of the OS for every window, I understand it can be annoying but I can't help much.

I'll check if there's any way to control this behaviour, though.
Title: Releasing Left-Alt key in windowed mode looses focus.
Post by: nitram_cero on December 15, 2008, 11:56:34 am
Possibly a solution:
http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms646360(VS.85).aspx

return 0 on a "WM_SYSKEYUP/DOWN" or "WM_SYSCOMMAND with wParam==SC_KEYMENU" message. This tells windows that you processed it.
I'll give it a try when I have less work to do.

Regards
-Martín
Title: Releasing Left-Alt key in windowed mode looses focus.
Post by: PiotrKane on May 14, 2011, 02:54:13 pm
Does someone find solution to this? Because this cause great problem to me.