在文本框中导航时的 KERN-EXEC 3(Symbian OS 浏览器控制)

发布于 2024-09-02 23:01:03 字数 994 浏览 3 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

神仙妹妹 2024-09-09 23:01:03

有趣的是,如果我切换到使用光标导航,它工作得很好。目前,这是一个解决方法。我仍然很好奇是否有办法解决这个问题。现在,我称之为答案。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文