You Are Here:

Community: Wiki

This page was last modified on 27 September 2009, at 11:31.

禁止按绿键调出拨号键盘或语音拨号

From Forum Nokia Wiki

概述

在S60第五版应用程序中按绿键默认调出拨号键盘,长按绿键默认启动语音拨号。本文描述了如何禁止这两种默认行为。

方案

调用AppUi::SetKeyEventFlags(EDisableSendKeyShort)禁止绿键调出拨号键盘:

void CHelloWorldAppUi::ConstructL()
{
...
SetKeyEventFlags(EDisableSendKeyShort); // don't show me the dial pad
...
}


调用AppUi::SetKeyEventFlags(EDisableSendKeyLong)禁止长按绿键启动语音拨号:

void CHelloWorldAppUi::ConstructL()
{
...
SetKeyEventFlags(EDisableSendKeyLong);
...
}

也可以同时禁止这两种默认行为。

void CHelloWorldAppUi::ConstructL()
{
...
SetKeyEventFlags(EDisableSendKeyShort|EDisableSendKeyLong);
...
}

相关文档 (和讨论):

"EStdKeyYes on 5800"

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia