|
On Screen Keyboard7 n/ t' |8 Z5 n6 k
From WebOS Internals
) O3 Q, r. M4 N) ?, f" E* m7 B7 ~Jump to: navigation, search
, P; e( W7 S9 l& {2 A5 I: QOn Screen Keyboard: A path forward
8 t) X% `, B5 X0 n
; M8 C( u, l- vThe Palm Pre already COMES with an on-screen keyboard. It works in portrait and landscape, in all apps, in all fields.
, \& i0 L Z: i) F3 R; g* j1 c& \2 E% ~) L0 w/ x5 l
Press the "sym" key and a scrollable 5x5 keyboard pops up full of alternate characters.9 k' f% A: j3 z- e& S& t, l) v% X% m
& c- v0 C6 X# ]( i, k# ]% s* [% U
This is controlled by /usr/palm/frameworks/mojo/submissions/191.15/javascripts/widget_charselector.js
) W1 }' H0 D( U( s
0 s: M+ Z; f- |+ Y+ l, E, m+ @with the layout controlled by 3 files in /usr/palm/frameworks/mojo/submissions/191.15/templates/charselector
* C" U: ?" w( S7 k, b+ [7 E' C% R# G# O7 A5 }
the actual list of characters that appear on the screen is controlled by /usr/palm/frameworks/mojo/submissions/191.15/resources/en_us/alternatechars_table.json; s! D6 H& A3 D; h/ i. r
3 K! H5 H( _' iAt 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.
A( g3 W2 e& h5 t1 F6 _- v1 x9 h- q6 B3 d
At the next level, widget_charselector.js needs to be modified to not close the keyboard after each keypress.
. o. t+ c! A2 ^# I V
/ S( E, V! }& G- i: P5 iA 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.
) m) G% [: Z1 J9 z% D, X2 l; v$ y8 D+ y$ q# F8 t
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."
{( s4 n o% ^# ~- T8 v4 [; u* s+ R1 F6 c) @' S: e- w# j0 j
Still, this is a path forward which is something we haven't had before., S) B, n2 I/ z1 B
3 j+ ?( w. h- S8 w
Please edit this page with your thoughts, and proposals.
) Y& i% D! ]9 y: K
) S$ Q0 O; e% N8 TUpdate: 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 |
|