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 »
- Would-be Japanese space tourist wants $21M back
- NASA scales back flagship Mars mission
- Bulgarian archaeologists unearth ancient chariot
- Witnesses: Large meteor streaks across Canada sky
- Solar panels on graves give power to Spanish town
- Fuel from food? The feast is over
- Fabulous flippers: Dolphins have quite the kick
- Whales rescued from Australian beach join pod
- Siberian quake triggers false US seismic reports
- Pirates sign Indian _ not Cleveland _ pitchers

