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.

QWERTY键盘的数字输入

From Wiki
Jump to: navigation, search
Article Metadata

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

当S60设备上有QWERTY键盘时,用户讲无法选择数字输入模式。这时数字和是其他字母键一起共享按键的,需要通过Fn功能键访问。如果一个程序不能使用AVKON UI控件但需要处理单独按键事件时,这时接收数字输入就成为带有QWERTY手机的问题了。

  • 解决方案

如果从CCoeControl派生的类,需要处理数字按键事件时,它的输入能力可以定义如下:

TCoeInputCapabilities CMyAppView::InputCapabilities() const
{
TCoeInputCapabilities inputCaps
 
(TCoeInputCapabilities::EWesternNumericIntegerPositive);
return inputCaps;
}

这样,我们便可以正确处理数字键。

This page was last modified on 7 August 2012, at 00:03.
316 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.

×