Key events problem

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

Key events problem

Postby nanye » Sun May 04, 2008 3:02 am

I found that parent View cannot trigger its own onKeyDown/onKeyUp method if its children get focus. It seems that its child swallow all the key events. This happens even if its children return "false" in their own onKeyDown/onKeyUp() methods.

Does anyone meet the same problem? :(
nanye
Junior Developer
Junior Developer
 
Posts: 12
Joined: Fri Apr 18, 2008 3:55 am

Top

Postby plusminus » Fri May 16, 2008 11:12 am

Hello nanye,

you are doing what the doc says:
If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false.


So its maybe not your fault.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 15 guests