找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 1801|回复: 7

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

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

使用道具 举报

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

使用道具 举报

发表于 2009-8-12 18:04 | 显示全部楼层
原帖由 yglaotu 于 2009-8-12 16:47 发表
" D3 e- D. d0 j( m3 B8 R4 Z沙发。但偶不喜欢软键盘。这就是我为什么不喜欢IP的主要原因之一!

$ p% V! G/ K. f- ^1 ~6 j4 P5 ^1 O: C3 I/ q; g/ u
同感。。。
回复 支持 反对

使用道具 举报

发表于 2009-8-12 18:53 | 显示全部楼层
原帖由 yglaotu 于 2009-8-12 16:47 发表
* u9 `" O$ K$ g沙发。但偶不喜欢软键盘。这就是我为什么不喜欢IP的主要原因之一!

7 U6 n( h5 f& d
$ g) J5 d- f1 U( w9 |偶也是。。。
回复 支持 反对

使用道具 举报

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

使用道具 举报

发表于 2009-8-13 10:07 | 显示全部楼层
原帖由 yglaotu 于 2009-8-12 16:47 发表 ' a) M' }. w% b) X) R  ?6 }
沙发。但偶不喜欢软键盘。这就是我为什么不喜欢IP的主要原因之一!

& Q8 q  J) c2 P  f& U+ |
$ O* G4 h# ?. h2 l( @7 r
$ i3 [7 `) [  L3 m$ |同感,不过PRE上有也不错,就算不用。
回复 支持 反对

使用道具 举报

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

使用道具 举报

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-20 22:32 , Processed in 0.311223 second(s), 15 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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