在文本框中导航时的 KERN-EXEC 3(Symbian OS 浏览器控制)
我在 S60 第 3 版 FP1 上使用 Symbian 的浏览器控件时感到非常悲伤。我们目前显示页面,许多事情都进展顺利。但是,当在 HTML 文本字段中输入文本时,如果用户在文本输入区域的开头向左移动(这应该将其“换行”到结尾),或者在文本输入区域的开头向右移动,则用户将得到 KERN-EXEC 3。文本输入区域的末尾(应该将其“换行”到开头)。
我似乎无法捕获 OfferKeyEventL
中的输入。我收到按键事件,返回 EKeyWasConsumed
并且光标仍然移动。
TKeyResponse CMyAppContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
{
if (iBrCtlInterface) // My browser control
{
TBrCtlDefs::TBrCtlElementType type = iBrCtlInterface->FocusedElementType();
if (type == TBrCtlDefs::EElementActivatedInputBox || type == TBrCtlDefs::EElementInputBox)
{
if (aKeyEvent.iScanCode == EStdKeyLeftArrow || aKeyEvent.iScanCode == EStdKeyRightArrow)
{
return EKeyWasConsumed;
}
}
}
}
我可以完全禁用箭头键导航,但似乎无法做到这一点。
有什么想法吗?我是否以错误的方式处理这个问题?这里有人使用过 S60 3.1 上的浏览器控制库 (browserengine.lib) 吗?
更新:有趣的是,如果我切换到使用光标导航,它工作得很好。目前,这是一个解决方法。我仍然很好奇是否有办法解决这个问题。
I've had nothing but grief using Symbian's browser control on S60 3rd edition FP1. We currently display pages and many things are working smoothly. However, when inputting text into an HTML text field, the user will get a KERN-EXEC 3 if they move left at the beginning of the text input area (which should "wrap" it to the end) or if they move right at the end of the text input area (which should "wrap" it to the beginning).
I can't seem to trap the input in OfferKeyEventL
. I get the key event, I return EKeyWasConsumed
and the cursor still moves.
TKeyResponse CMyAppContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
{
if (iBrCtlInterface) // My browser control
{
TBrCtlDefs::TBrCtlElementType type = iBrCtlInterface->FocusedElementType();
if (type == TBrCtlDefs::EElementActivatedInputBox || type == TBrCtlDefs::EElementInputBox)
{
if (aKeyEvent.iScanCode == EStdKeyLeftArrow || aKeyEvent.iScanCode == EStdKeyRightArrow)
{
return EKeyWasConsumed;
}
}
}
}
I would be okay with completely disabling arrow key navigation but can't seem to do this.
Any ideas? Am I going about this the wrong way? Has anyone here even worked with the Browser Control library (browserengine.lib) on S60 3.1?
Update: Interestingly, if I switch to use Cursor Navigation, it works fine. For now, this is a workaround. I'm still curious to know if there are ways to resolve this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能会在 http://discussion.forum.nokia.com/forum/。
You would get quicker answer probably in http://discussion.forum.nokia.com/forum/.
有趣的是,如果我切换到使用光标导航,它工作得很好。目前,这是一个解决方法。我仍然很好奇是否有办法解决这个问题。现在,我称之为答案。
Interestingly, if I switch to use Cursor Navigation, it works fine. For now, this is a workaround. I'm still curious to know if there are ways to resolve this. For now, I'm calling this the answer.