| Summary: | Backspace and Return Not Sending Events From On-Screen Keyboard | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Joe LeVeque <joeleveque> |
| Component: | events | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | gabomdq |
| Version: | 2.0.0 | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
|
Description
Joe LeVeque
2013-08-12 12:28:39 UTC
I just verified and I get SDL_KEYUP / SDL_KEYDOWN events with keycode 8 (BACKSPACE) and 13 (ENTER), and SDL_TEXTINPUT events for regular characters. Is this the way it's supposed to work? On 8/20 I updated my source to the latest hg snapshot, and I noticed that the ENTER key was now having an effect in my app (but not BACKSPACE), so I went to debug my app to see what events were now being received, but unfortunately I had also just updated my device to Android 4.3, in which I found that Google has included a beautiful bug that completely breaks native code debugging (see the bug report here: https://code.google.com/p/android/issues/detail?id=58373). I'm waiting for a fix from Google and in the meantime trying to find a workaround so I can debug my app again. :( What happened to good old __android_log_print ? :) That's actually what I did to test this, on the key up, down and text input events, I added a print command to see what's arriving from the keyboard. And that seemed to work (I'm also on Android 4.3) OK - you got me ;) I've been busy with other things, and I also need to get the debugger working for other issues, so I did kinda put this issue on the back burner. Anyway, I added an __android_log_print, and I verified that I am now receiving SDL_KEYUP / SDL_KEYDOWN events for ENTER, but still no event at all for BACKSPACE. However, I am seeing a new message in the logcat whenever BACKSPACE is pressed: 08-22 12:23:26.451: E/LatinIME(1259): Backspace when we don't know the selection position Again, I am running SDL from changeset 7659. For reference: http://forum.unity3d.com/threads/161471-Backspace-key-of-screen-keyboard-not-work I'm using Swiftkey which probably explains why I'm not seeing the problem. Gabriel - good find! At least I know I'm not crazy! It's good to know other people are looking into this as well, but it seems like a pretty nasty issue. Here's hoping there's a simple solution. FYI, Looks like this might be a possible explanation/solution: http://stackoverflow.com/questions/14560344/android-backspace-in-webview-baseinputconnection Should be fixed now, thanks for the research! https://hg.libsdl.org/SDL/rev/b8f431cd7819 |