Keyboard handling problems

Alex Bligh alex at alex.org.uk
Mon Aug 14 14:46:24 PDT 2006


The right ALT key (ALT-Gr) and windows/start keys appear
to be on bad terms with wxWidgets GTK.

Using samples/keyboard, pressing the right ALT key does
not appear to produce a wxKeyEvent at all.
wxGetKeyState(WXK_ALT) appears to return the status of the
left ALT key only, i.e. is unaffected by the left ALT.

On windows, Right ALT does the same as Left ALT.

It might be argued that Alt-Gr is "meta" under Unix.
In which case fine, it should still return a key event,
and wxGetKeyState should return a "Meta" character.

Further, on wxGTK the "windows" or "start" key, produces
a key event saying the ALT key has been pressed, but
no flag saying the ALT key is down (try it on the sample
application).

I'm confused as to how this is meant to work. Right now,
all I'd like to do is to get the status of the keys.

Any ideas?

Alex






More information about the wx-dev mailing list