×
Namespaces

Variants
Actions
Revision as of 03:03, 7 August 2012 by hamishwillee (Talk | contribs)

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

QWERTY键盘的数字输入

From Nokia Developer 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 03:03.
116 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.

×