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.

Revision as of 00:28, 22 November 2011 by hamishwillee (Talk | contribs)

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


From Wiki
Jump to: navigation, search
Article Metadata

User:Jiangbaolan 在 02 Apr 2009 创建
最后由 hamishwillee 在 22 Nov 2011 编辑

详细描述 笔型键("ABC"key)的TKeyEvent.iCode值和iScanCode 的值分别是什么? 解决方案 在60系列手持设备上,笔型键被影射为上档修饰(Shift Modifier)键。下面的代码演示和如何可以检测他:


 TKeyResponse CMyClass::OfferKeyEventL(...)
TBool shiftKeyPressed = (aKeyEvent.iModifiers & EModifierShift);

他的键盘码和扫描码(keycode and scancode)取决于按 下SHIFT键的同时还按下了另外哪个键。下面的代码演示 了一个列表框的OfferKeyEventL()函数如何检测 SHIFT+OK组和键,这个组和键被用来标记列表框成员。


TKeyResponse CMyBusinessClass::OfferKeyEventL(...)
TBool shiftKeyPressed = (aKeyEvent.iModifiers & EModifierShift);
if (shiftKeyPressed && aKeyEvent.iCode==EKeyOK)
This page was last modified on 22 November 2011, at 00:28.
26 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.