|
On Screen Keyboard; V: W4 O1 o- ~% r& v4 Q
From WebOS Internals
' s3 R, y4 x: `/ a, f( WJump to: navigation, search
" ~7 L; D( Y# k- b3 o7 J3 M# I; VOn Screen Keyboard: A path forward- r7 K2 E4 C; q! p7 T; o8 ]
8 {5 Z2 {8 g& R+ d! VThe Palm Pre already COMES with an on-screen keyboard. It works in portrait and landscape, in all apps, in all fields.
; T9 T* V3 c0 S+ s
- s' l1 D1 a; |4 |0 PPress the "sym" key and a scrollable 5x5 keyboard pops up full of alternate characters.4 d6 {3 |. h- d1 Y9 g) t2 r
2 W1 I2 |6 n* l- G# _2 p. o
This is controlled by /usr/palm/frameworks/mojo/submissions/191.15/javascripts/widget_charselector.js
, i) e) [4 K" j: |4 o
. l& N$ ]6 W' m/ Z3 \7 iwith the layout controlled by 3 files in /usr/palm/frameworks/mojo/submissions/191.15/templates/charselector5 X7 K& w8 R) {) o( E
, J# i4 _% h8 H* bthe actual list of characters that appear on the screen is controlled by /usr/palm/frameworks/mojo/submissions/191.15/resources/en_us/alternatechars_table.json2 C' a; l( O; q3 L: Y5 M* j- C
/ M- f A) ?/ _8 bAt the simplest level then, creating an on-screen keyboard requires editing the alternate characters table json, to add the "regular" charcters to it, and then when you want a keyboard, press SYM and poof, a keyboard./ a7 z0 j9 t9 H! T4 I# B2 e
8 B/ ]8 @" w# H# x
At the next level, widget_charselector.js needs to be modified to not close the keyboard after each keypress.) O' y- Y( x7 b0 J" @! V4 ?* a
0 t4 y/ U. a# l E7 Z6 {- w* ]A more sophisticated version would require editing widget_charselector.js to make the widget wider to accomodate more characters at a time, or perhaps a qwerty layout.' t7 N: L% k1 Q+ @8 L% I
6 l1 ^( M4 Q0 g' h# k
A further refinement would require digging into the mojo framework deeper. It would be really "neat" if you were in a text field and the keyboard "popped up" if the slider was closed. This would be "harder.": Y( f t5 O. H- D: T
7 E: ^6 g' r. D8 s2 pStill, this is a path forward which is something we haven't had before.
" }7 V6 e3 ^/ p+ [2 v- X
* I) s& y( q% {( j5 |' |0 O; |( JPlease edit this page with your thoughts, and proposals.
) Z& s1 A% [) y$ ]* {# ~, g/ z7 Q" j) }- B0 b
Update: 8/04/09 I have been editing widget_charselector.js, and no changes have occurred, can be deleted, and still no changes occur, it does not control sym in the least bit -Joesmith |
|