Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Releasing Left-Alt key in windowed mode looses focus.  (Read 21456 times)

0 Members and 1 Guest are viewing this topic.

nitram_cero

  • Full Member
  • ***
  • Posts: 166
    • View Profile
Releasing Left-Alt key in windowed mode looses focus.
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Releasing Left-Alt key in windowed mode looses focus.
« Reply #1 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.
Laurent Gomila - SFML developer

nitram_cero

  • Full Member
  • ***
  • Posts: 166
    • View Profile
Releasing Left-Alt key in windowed mode looses focus.
« Reply #2 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

PiotrKane

  • Newbie
  • *
  • Posts: 1
    • View Profile
Releasing Left-Alt key in windowed mode looses focus.
« Reply #3 on: May 14, 2011, 02:54:13 pm »
Does someone find solution to this? Because this cause great problem to me.