找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 1878|回复: 7

[软硬件讨论] palm虚拟软键盘实现思路

[复制链接]
发表于 2009-8-12 16:18 | 显示全部楼层 |阅读模式
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
回复

使用道具 举报

发表于 2009-8-12 16:47 | 显示全部楼层
沙发。但偶不喜欢软键盘。这就是我为什么不喜欢IP的主要原因之一!
回复 支持 反对

使用道具 举报

发表于 2009-8-12 18:04 | 显示全部楼层
原帖由 yglaotu 于 2009-8-12 16:47 发表 0 T5 I$ h" p, Z2 n/ `) R
沙发。但偶不喜欢软键盘。这就是我为什么不喜欢IP的主要原因之一!

# r' t2 }  Q2 Q0 m- O
& ?( U' _- K! W同感。。。
回复 支持 反对

使用道具 举报

发表于 2009-8-12 18:53 | 显示全部楼层
原帖由 yglaotu 于 2009-8-12 16:47 发表
+ ^; {3 e4 y* W( f; {9 |, R沙发。但偶不喜欢软键盘。这就是我为什么不喜欢IP的主要原因之一!

# k& Q5 I/ H' k$ N
/ f! }' ?- [9 M5 I/ ^) u& m% w* q. b偶也是。。。
回复 支持 反对

使用道具 举报

发表于 2009-8-12 21:11 | 显示全部楼层
这玩意儿不是要拿来用滴,是方便开发系统中文输入法的吧
回复 支持 反对

使用道具 举报

发表于 2009-8-13 10:07 | 显示全部楼层
原帖由 yglaotu 于 2009-8-12 16:47 发表
- K. B& w; L; [- I" s沙发。但偶不喜欢软键盘。这就是我为什么不喜欢IP的主要原因之一!

9 e$ c" \0 m- B" N6 z# W# ?
( B1 P8 Z6 z. {! E& t8 n: m& p/ X6 y: G$ r7 }) [* Q
同感,不过PRE上有也不错,就算不用。
回复 支持 反对

使用道具 举报

发表于 2009-8-13 11:36 | 显示全部楼层
看名字还以为是软件的盘呢.
回复 支持 反对

使用道具 举报

发表于 2009-8-13 12:40 | 显示全部楼层
最起码标题里不要出现错别字吧……
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2025-4-21 08:04 , Processed in 0.236397 second(s), 16 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表