Features/Onscreen Keyboard: Difference between revisions
No edit summary |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
[[Category:Feature Page Incomplete]] | [[Category:Feature Page Incomplete]] | ||
[[Category:Feature| | [[Category:Feature|Onscreen Keyboard]] | ||
</noinclude> | </noinclude> | ||
| Line 16: | Line 16: | ||
* Targeted release: N/A | * Targeted release: N/A | ||
* Last updated: 06/29/2010 | * Last updated: 06/29/2010 | ||
* Percentage of completion: | * Percentage of completion: 5% | ||
== Detailed Description == | == Detailed Description == | ||
With OLPC announcing the XO-3 tablet, and with hardware like the [http://thejoojoo.com/ JooJoo tablet], Sugar should become better suited for touch-based, physical keyboard-less devices. The on-screen keyboard feature aims to provide one such functionality. | With OLPC announcing the XO-3 tablet, and with hardware like the [http://thejoojoo.com/ JooJoo tablet], Sugar should become better suited for touch-based, physical keyboard-less devices. The on-screen keyboard feature aims to provide one such functionality. | ||
On-screen keyboards are also important for certain accessibility related contexts, but use cases like that are better handled by specialized software like [[Features/ | On-screen keyboards are also important for certain accessibility related contexts, but use cases like that are better handled by specialized software like [[Features/Accessibility virtual keyboard]]. | ||
=== Software === | === Software === | ||
| Line 33: | Line 33: | ||
== Scope == | == Scope == | ||
* Work needed for fvkbd | |||
** While the fvkbd binary is good enough for initial prototyping, for tighter integration in the future, it may be useful to utilize the libfvkbd library and implement the keyboard as a part of the sugar-shell itself. | |||
** The current version of fvkbd handles all non-primary layouts as "temporary" layouts, which mean that once a key is clicked, the keyboard state goes back to the primary layout. This makes it unusable for multiple keyboard layouts. I have [http://bugzilla.moblin.org/show_bug.cgi?id=10508 proposed a patch]. The maintainer suggests an alternate way to do this, and I think his idea makes sense (though there is no patch for it yet). | |||
** The number of layouts for fvkbd is quite low, and it is not possible to do a 1:1 transition from XKB to fvkbd layouts. I have made an [http://dev.laptop.org/~sayamindu/sugar-vkbd-test/olpc-single-es.xml.gz experimental Spanish layout], along with a [http://dev.laptop.org/~sayamindu/sugar-vkbd-test/olpc-dual-bn.xml dual layout] with English and Bengali (it requires a patched fvkbd, and the patch can be obtained from the [http://dev.laptop.org/~sayamindu/sugar-vkbd-test/olpc-single-es.xml.gz bug] mentioned above). | |||
* Work needed in Sugar | |||
** It is still not clear on how to best integrate the keyboard into Sugar. The most easy and obvious approach is using a [http://dev.laptop.org/~sayamindu/sugar-vkbd-test/keyboard.py device icon] in the frame, but it would be useful to have the keyboard pop-out automatically when an editable widget has focus. See the discussion on GTK+ modules below. | |||
** One major drawback of an on-screen keyboard is that in its current design, it blocks out a part of the Sugar UI. There's no immediate answer on how to handle this problem. | |||
** Starting up the keyboard process is currently done in the prototypes using [http://dev.laptop.org/~sayamindu/sugar-vkbd-test/sugar-session sugar-session]. However, it may be useful to have this capability as a Sugar service, so that the keyboard can be invoked by activities as and when required. | |||
* Work needed elsewhere | |||
** GTK+ module to handle focus-in/out events | |||
*** A GTK+ module which would automatically invoke/close the keyboard when the user focuses into/out of an editable widget would probably be a good addition.However, while standard GTK+ widgets such as GtkTextView, etc can be easily identified as being editable, widgets such as those used by Write (Abiword) and Browse would be difficult to detect. Moreover, for activities like Etoys and Scratch, which do not use GTK+ at all, one would need to use some other approach. | |||
*** Code for a proof of concept GTK+ module which tries to detect focus-in events on common editable widgets can be [http://dev.laptop.org/~sayamindu/sugar-vkbd-test/on-screen.c downloaded]. Usage and compilation instructions are in the comments. | |||
==UI Design== | ==UI Design== | ||
Following is a screenshot of fvkbd in Sugar, using an experimental Spanish layout: | |||
[[Image:Sugar-ES-Onscreen-KBD.png]] | |||
A screencast is also [http://dev.laptop.org/~sayamindu/sugar_vkbd_multi.ogv available]. | |||
== How To Test == | == How To Test == | ||
{{:{{PAGENAME}}/Testing}} | {{:{{PAGENAME}}/Testing}} | ||
== User Experience == | == User Experience == | ||
TODO | |||
== Dependencies == | == Dependencies == | ||
FVKBD is the only external dependency at the moment. It needs to support multi-lingual situations correctly. | |||
Other dependencies may include a GTK+ module, a device icon extension to invoke the keyboard, etc. | |||
== Contingency Plan == | == Contingency Plan == | ||
None necessary, revert to previous release behaviour. | |||
== Documentation == | == Documentation == | ||
None | |||
== Release Notes == | == Release Notes == | ||
TODO | |||
== Comments and Discussion == | == Comments and Discussion == | ||
* See [[{{TALKPAGENAME}}|discussion tab for this feature]] | * See [[{{TALKPAGENAME}}|discussion tab for this feature]] | ||