CS000943 - Web Runtime NumericKeyTranslator Widget(日本語)

原文(英語): CS000943 - WRT NumKeyTranslator Widget

Knowledge Base Home

ID CS000943
作成日付 2008年5月2日

プラットフォーム S60 3rd Edition FP2
テスト済み端末  

カテゴリ(Category) S60 Web Runtime
サブカテゴリ(Subcategory)  

使用API  
使用クラス  

使用メソッド  
   

目的
本ページにおけるJavaScriptコード例は、再利用もしくはより大きなプロジェクトに組み込んで使うことを意図しています。

概要
NumericKeyTranslator(数字キートランスレータ)は、JavaScript言語で書かれたキーマップエンジンで、S60 Web Runtimeプラットフォーム用に書かれています。本ライブラリは、S60 Web Widgetで、主にテキスト編集フィールドが編集モードになっていて、Widgetエンジンによるキーイベントが吸収されてしまう問題を回避するために使われるものです。このように、Widgetは、文字が編集フィールドに入力された時に、それを検知するためのキーイベントを即座に受取ることができません。そのユースケースの1つは、ユーザーが検索フィールド(テキスト入力フィールド)に文字を入力したら、その文字列が直ちに検索される即時検索(Instant Searching)機能の実装です。
テキスト編集フィールドを持つ数字キートランスレータを使用する(<input type="text" />)と、input要素は読取専用(read-only)に設定され、ユーザーがそのフィールドを編集モードにすることができないようにします(<input type="text" readonly="true"/>)。
NumericKeyTranslatorは、その要素上に文字を正しく表示できる全てのタグ要素で使用できます。1つの例として、<div>要素があります。本エンジンは現在、changeKeys関数で定義された言語でのみサポートします。

アプリケーション例
Image:NumKeyTranslator.zip



Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.

Post Info

This entry was posted on Wednesday, July 2nd, 2008 and is filed under Blogroll.

You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.



Previous Post: Groups seek drilling halt near sage grouse habitat »
Next Post: Google wins source code ruling against Viacom »

Read More

Related Reading:



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

You must be logged in to post a comment.

edwan