I'd look at how ConnectBot handles it. It too is dealing with a case of needing keyboard input for an environment (SSH) that isn't necessarily IME-ready.
LouisB wrote: > 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! > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy App Widgets Deep Dive Seminar, 27 January 2010: http://bit.ly/deepdive -- 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

