What if I put an invisible EditText in the layout and pull the keystrokes out of there?
On Nov 7, 8:26 am, LouisB <[email protected]> wrote: > Good day, my application is an Apple 2 Emulator and I’m getting > reports from MyTouch 3G users that my softkeyboard implementation > isn’t outputting proper keystrokes for some of the shift keys. Right > now everything is captured by doKeyDown via the SurfaceHolder Callback > so this is understandable. > > For example: > $ returns 4 > % returns 5 > & returns 7 > ( returns 9 > ) returns 0 > ! returns 1 > " returns 2 > : returns (nothing at the moment) > ? returns / > > I get the notion that the soft keyboard isn't just a virtual keyboard > – it’s an IME with much more than just keystrokes – but could someone > help me craft some code that would allow me to capture keys using the > InputMethodService? I can’t find any sample code, and it’s a bit > difficult because I don’t have a text box to bind to – the user is > simply looking at my SurfaceView running the emulation. I would like > to capture the text coming from the soft keyboard and process > accordingly. > Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

