Cannot input small letters to Keyboard

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot input small letters to Keyboard

John
When I run the supplied Keyboard test routine with the supplied OS vm files I cannot input small letters.  When I press a key such as A I always get a capital A whether or not Shift is pressed.  My guess is that something in the VM emulator is causing this to happen rather than something in the vm files.  Did I miss something somewhere?
Reply | Threaded
Open this post in threaded view
|

Re: Cannot input small letters to Keyboard

John
I looked at the Java source (version 2.5.7) for the VM emulator and indeed in Definitions.getKeyCode( ) all letters are converted to capital letters.  I've made a change to my source file to change lines 457 and 458 of Definitions.java from
                        if (code >= 65 && code <= 90)
                                key = code;

                                      to

                        if (code >= 65 && code <= 90)
                                key = (short)letter;


I can now enter small and capital letters.