Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ercp-dev] Virtual keyboard handling API proposal

Vote for YES.


Have a nice day!

Sincerely yours

Uriel Liu(劉剛樑), PMP
PvC Embedded Software Development, CSDL, IBM Taiwan
e-mail: liukl@xxxxxxxxxx
Tel: 886-2-8170-6871, Fax: 886-2-2655-0541, Tie-Line: 849-6871
10F., Bldg. E. 19-13 Sanchong Rd., NanKang Dist., Taipei 115, Taiwan

- The proof of the pudding is in the eating -


Inactive hide details for Mark Rogalski <rogalski@xxxxxxxxxx>Mark Rogalski <rogalski@xxxxxxxxxx>


          Mark Rogalski <rogalski@xxxxxxxxxx>
          Sent by: ercp-dev-bounces@xxxxxxxxxxx

          2005/12/19 下午 11:16

          Please respond to
          eRCP project developer discussions

To

ercp-dev@xxxxxxxxxxx

cc


Subject

[ercp-dev] Virtual keyboard handling API proposal

Please vote on whether to incorporate the following change into the Mobile Extensions specification:

Some mechanism is required to give applications control over the display of
virtual keyboards when a widget gains focus. (See bug 106486). The mechanism
granting the most control is that of a  listener which can respond yes or no
regarding the display of the virtual keyboard whenever a widget  capable of
text input gains focus. It seems to me that this, being a mobile device
specific feature, is best located in the MobileDevice class.

 MobileDevice {
  void addVirtualKeyboardListener(VirtualKeyBoardListener vkbdl);
  void removeVirtualKeyboardListener(VirtualKeyBoardListener vkbdl);
 }

 VirtualKeyBoardListener {
  /* the following method returns one of:
   VIRTUAL_KEYBOARD_SHOW
   VIRTUAL_KEYBOARD_HIDE
   VIRTUAL_KEYBOARD_DEFAULT
  */
  int queryShowKeyboard(Widget widgetGainingFocus);
 }

 Expected operation:
  If a VirtualKeyboard listener is added, then MobileDevice will monitor focus events. When a widget is gaining focus, the listener's query method is called to determine whether to display the virtual keyboard. Otherwise, a default policy is implemented.
  The default policy will examine whether a real keyboard is present or attached and cause the virtual keyboard to display accordingly.


_______________________________________________
ercp-dev mailing list
ercp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ercp-dev

GIF image

GIF image

GIF image


Back to the top