【问题标题】:integrating input fields using IME with "Scene" in samsung smart tv?在三星智能电视中使用 IME 将输入字段与“场景”集成?
【发布时间】:2014-04-28 13:31:44
【问题描述】:

下面提到的代码能够显示键盘,但问题是在按下任何键后它给了我"body is not activated.....",因为

document.getElementById("userid").focus();

但是如果我删除 document.getElementById("userid").focus(); 键盘将不会生成并且密钥开始工作

IME 示例代码

SceneSignIn.prototype.handleShow = function (options) {
    alert("SceneSignIn.handleShow()");
    // this function will be called when the scene manager shows this scene
    this.ime_plainText = new IMEShell("userid");    
    this.ime_passwordText = new IMEShell("password");
    document.getElementById("userid").focus();
}

【问题讨论】:

    标签: javascript html samsung-smart-tv ime


    【解决方案1】:

    检查是否:

    1. 索引正文中的新 javascript 应用程序锚元素具有默认值。这: <a href="javascript:void(0);" id="anchor" onkeydown="main.keyDown(event);"></a>
    2. 当您为输入元素提供焦点时,您在应用程序中的焦点管理不会受到干扰。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多