Capture keystrokes of a soft keyboard

Put your problem here if it does not fit any of the other categories.

Capture keystrokes of a soft keyboard

Postby marthijnh » Wed Mar 09, 2011 12:59 pm

Hi all,
I'm implementing a custom keyboard and I'm looking for a solution to capture onKeyDown and onKeyUp events of the soft keyboard.
Within my custom KeyboardView class I tried the following:

1.
I've created a new class that implements OnKeyboardActionListener. In the constructor of my custom KeyboardView I used the function setOnKeyboardActionListener(), but the functions in my listener are not triggered.

2.
I did override onKeyDown and onKeyUp of the View class, but that didn't work either.

Any solutions?
marthijnh
Freshman
Freshman
 
Posts: 5
Joined: Tue Feb 22, 2011 9:35 am

Top

Re: Capture keystrokes of a soft keyboard

Postby marthijnh » Wed Mar 09, 2011 1:06 pm

Hmm I think I already fixed it.. I added the OnKeyboardActionListener after the Keyboard was created instead of in the constructor :)
marthijnh
Freshman
Freshman
 
Posts: 5
Joined: Tue Feb 22, 2011 9:35 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 23 guests