Make inline text input work properly on Android.

Previously, android phones showed an ugly window.prompt, and no prompt or keyboard appeared at all on android tablets.