Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile/event: keyboard support #9361

crawshaw opened this issue Dec 17, 2014 · 2 comments


None yet
4 participants
Copy link

commented Dec 17, 2014

Both android and iOS provide OS software onscreen keyboards. The event package needs a common API for activating both, and needs to adjust the reported screen space appropriately.

There are some curious complications for those of us used to traditional keyboards, but nothing impossible:

  • there are various ways to suggest different key layouts (for example, just a numeric pad)
  • word suggestion can translate in a large number of single key presses all at once

This comment has been minimized.

Copy link

commented Dec 17, 2014

word suggestion can translate in a large number of single key presses all at once

Is it possible/a good idea to be able to represent that as a single event containing multiple key presses, rather than multiple unconnected (aside from temporal proximity) single key press events?

@rsc rsc added this to the Unplanned milestone Apr 10, 2015

@rsc rsc changed the title mobile/event: keyboard support x/mobile/event: keyboard support Apr 14, 2015

@rsc rsc modified the milestones: Unreleased, Unplanned Apr 14, 2015

@rsc rsc removed the repo-mobile label Apr 14, 2015


This comment has been minimized.

Copy link

commented Jul 8, 2015

CL mentions this issue.

crawshaw added a commit to golang/mobile that referenced this issue Jul 13, 2015

app, cmd/gomobile: subclass NativeActivity
Subclassing NativeActivity makes two things possible. Firstly, we can
implement an InputConnection to offer good support for IMEs,
necessary for good keyboard support. Secondly, we can use it to
overlay WebViews onto the NativeActivity.

But to sublcass NativeActivity, we need to compile Java. To keep the
toolchain go gettable, this is done with go generate.

While here, check the exception after FindClass. Apparently it can
throw an exception.

Updates golang/go#9361.
Updates golang/go#10247.

Change-Id: I672545997f0c9a7580f06988a273c03404772247
Reviewed-by: Hyang-Ah Hana Kim <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.