Ok, after a few hours, found the answer:

   public boolean onKey(View v, int keyCode, KeyEvent event)
   {
      switch (event.getAction())
      {
         case KeyEvent.ACTION_DOWN:
            eventThread.pushEvent(KEY_PRESS, event.getUnicodeChar(),
keyCode,0,convertMeta(event),0);
            break;
         case KeyEvent.ACTION_MULTIPLE:
            String chars = event.getCharacters();
            char c;
            for (int i =0,n=chars.length(); i < n; i++)
               eventThread.pushEvent(KEY_PRESS, c=chars.charAt(i), c,
0,convertMeta(event),0);

guich

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to