Alt-Enter doesn't register as an event?

Hi,

I’m trying to cause Alt-Enter to toggle fullscreen mode. (in Linux)
However, when I press Alt-Enter in windowed mode no KeyDown event is
generated.
(One is generated on the Alt, but not on the Enter)
I can catch a plain Enter press, or Alt-

In fullscreen mode Alt-Enter does register.

Could this be the WM (Gnome/Enlightment) capturing Alt-Enter?
Is so, is there any way to prevent this? (other than changing WM)

Thanks,
Willem Jan

I’m trying to cause Alt-Enter to toggle fullscreen mode. (in Linux)
However, when I press Alt-Enter in windowed mode no KeyDown event is
generated.
(One is generated on the Alt, but not on the Enter)
I can catch a plain Enter press, or Alt-

In fullscreen mode Alt-Enter does register.

Could this be the WM (Gnome/Enlightment) capturing Alt-Enter?

Window managers often do global key grabs; this could very well be one.
You can verify it by running xev and see if it receives the event. If not,
someone is stealing it (probably the WM).

Is so, is there any way to prevent this? (other than changing WM)

Maybe you can configure your window manager not to grab this key combination.
But if you want your game to run on other people’s machines, it may be
unreasonable to demand that they reconfigure their WM just for you.

Perhaps we should put together a blacklist of commonly unavailable keyboard
combinations, so that a designer can avoid having them as default key
bindings.