[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