三星智能电视中的定制IME

时间:2014-07-01 06:04:46

标签: samsung-smart-tv

我正在为三星智能电视开发一款应用程序,我必须实现搜索功能。 我正在使用IME来获取输入,如下所示:

我包括

    <script type='text/javascript' src='$MANAGER_WIDGET/Common/IME_XT9/ime.js'></script> 

在body标签中,然后在JS

      ime = new IMEShell("txtSearch", ime_init_text, "en");
        if(!ime){
    alert("object for IMEShell create failed", 3);
            }

      function ime_init_text(imeobj)
      {


      var inputobj = imeobj.getInputObj();

      alert("start initializing : "+inputobj.id);
      var pluginAPI = new Common.API.Plugin();
      pluginAPI.registIMEKey();

     // ime.setKeypadPos(410, 80);
     imeobj.setQWERTYPos(200,150);
         imeobj.setEnterFunc(keypadEnter);
         ime.setAnyKeyFunc(onAnyKey);
         ime.setStatusOKBtn(onKeyOk);

     alert("ime_init end...");
     }

一个不错的qwerty键盘即将推出,但我无法使其宽度等于电视的屏幕尺寸并处理其确定和取消按钮点击事件。有人可以帮忙吗。

0 个答案:

没有答案