threerings / tripleplay

Utilities for use in PlayN-based games.
Other
92 stars 32 forks source link

Field to popup softkeyboard in android #6

Closed tmjee closed 12 years ago

tmjee commented 12 years ago

Hi guys,

Not sure what you guys think about this, for a field in tripleplay, it doesn't kick start soft keyboard when clicked on it. Thinking that should there be an android module that hook into Android's InputMethodManager to pop up a soft keyboard?

Thx

tmjee commented 12 years ago

Just a quick update. A possible workaround for issue #5 and #6 would be to have a custom keyboard widget, allowing user to click on the alphanumeric buttons that will fill in the field that is currently on focus. This seems to work for me.

It actually make sense for the soft keyboard to not show up, cause the whole thing was rendered in a canvas, how would android knows how to popup the softkey. Plus doing it this way also allows us to workaround the cross browser issues in #5.

Hope this helps whoever that might came across this in the future.