|
On Screen Keyboard
0 ?- n% s% O* zFrom WebOS Internals
6 o) K r& c- C1 k7 v/ s. KJump to: navigation, search* U5 o- D1 f% l: K4 k3 X( u8 g
On Screen Keyboard: A path forward' w# j B. a$ u# ^
: |9 L: P4 J+ e, R$ \$ Q) [
The Palm Pre already COMES with an on-screen keyboard. It works in portrait and landscape, in all apps, in all fields.
5 l M% s5 ?! [- Q7 F/ s) X3 j) V3 A. f* S+ L0 D
Press the "sym" key and a scrollable 5x5 keyboard pops up full of alternate characters.
3 C3 O4 [- ], o% ~" B& a5 e% q- x! C8 y' }% A. z3 o& |0 D
This is controlled by /usr/palm/frameworks/mojo/submissions/191.15/javascripts/widget_charselector.js
( q6 o* K: d& r/ Z9 r
! `" ]6 K+ p, r' M) ]with the layout controlled by 3 files in /usr/palm/frameworks/mojo/submissions/191.15/templates/charselector3 M, m3 M. E8 i; d
^4 @0 T$ {2 H2 B1 k, q- W8 ?1 A( [
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
* c) q" n4 Y8 X7 |. h3 Z
+ _7 e V$ x1 H( v$ mAt 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. T- N' j! j: V5 j/ a/ t: U
! T: G1 S5 k0 ]$ b/ [% k
At the next level, widget_charselector.js needs to be modified to not close the keyboard after each keypress.
) l' ]5 Y. H4 b
( m- e3 F# _, s* O' U pA 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.$ v6 h3 p, q5 s) E' k
: `# A% Q& w4 M( K3 U1 ~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."' l" k# d2 {: @; I8 h- y
: k: r6 x' f. q; u) }
Still, this is a path forward which is something we haven't had before.
' Z! f }1 I2 C' Z Q- v4 z
6 ^" L: X& G% M# XPlease edit this page with your thoughts, and proposals.
; j* x% m l1 x- h/ j& g2 H: M$ N$ m. v7 S+ c, X& C
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 |
|