×
Namespaces

Variants
Actions
Revision as of 10:24, 6 August 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

作为输入键之一的导航选择键

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

兼容于
文章
翻译:
hoolee
最后由 hamishwillee 在 06 Aug 2012 编辑
  • 详细描述

UI组件处理键盘事件时需要考虑到将导航选择键也作为输入键之一考虑


大多数情况下,Avkon UI组件同时响应选择键(EKeyOk)和输入键(EKeyEnter)。这使它们有一直的UI操作控制,无论程序运行在传统数字键盘或QWERTY键盘,或者外接蓝牙键盘,都一样。

第三方程序使用自定义的UI控件时将需要同样的功能实现。

  • 解决方案

在派生自CCoeControl类控件中的OfferKeyEventL()方法内处理EKeyOk和EKeyEnter事件。使用PC键盘操作模拟器上的UI键盘,测试程序。

This page was last modified on 6 August 2012, at 10:24.
53 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×