BruceSherwood / vpython-wx

VPython based on wxPython
Other
70 stars 38 forks source link

Keyboard events with caps lock #17

Closed BruceSherwood closed 10 years ago

BruceSherwood commented 11 years ago

This report from a user is almost certainly a difference between VPython 5 and 6, not a difference between Windows 7 and XP.

I noticed that pressing "a" key when caps lock is enabled gives "a" input in VPython 6.05 (running on Python 2.7.5 x86-64 on Windows 7) but in Vpython 5.74 (+Python 2.7.3 x86, Win XP) it gives "A" (same as shift+a). Is it due to different platform or was it changed in VPython 6.x?

So the 6.05 behavior is a bug; if caps-lock is enabled, certainly pressing the "a" key should give "A".

BruceSherwood commented 10 years ago

Fixed by detecting status of caps lock key in create_display.py