Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

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

From 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 07:24.
118 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.

×