在智能电视sdk的大qwerty键盘

时间:2014-07-18 10:33:48

标签: samsung-smart-tv ime

我注意到,某些应用程序(Facebook,浏览器)中有大量的qwerty键盘,这与弹出窗口不同。我如何在SDK中使用它。

P.S。我有多场景应用程序,app.json中包含ime模块

2 个答案:

答案 0 :(得分:0)

我从三星支持中发现,您可以使用IMEShell_Common对象。 首先,你包括这些: <script type='text/javascript' src='$MANAGER_WIDGET/Common/IME_XT9/ime.js'></script> <script type='text/javascript' src='$MANAGER_WIDGET/Common/IME_XT9/inputCommon/ime_input.js'></script> 身体标签 你可以像这样使用shell之后:

var imeBox = new IMEShell_Common(); 
document.getElementById('search').focus();
imeBox.onShow();

答案 1 :(得分:0)

在三星,这可以通过IME实现。在下面的链接中提到了一个非常好的逐步程序。它还有一个演示完整功能的示例应用程序:
http://www.samsungdforum.com/Guide/tut00049/index.html

以下是小型演示:

加载插件js:

<script type="text/javascript" language="javascript" src="$MANAGER_WIDGET/Common/API/Plugin.js"></script>

现在加载IME js:

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

创建插件实例:

  

var pluginAPI = new Common.API.Plugin();

现在注册IME密钥并为文本字段初始化它。

  pluginAPI.registIMEKey();
    imeMail = new IMEShell("messageText", Main.imeInitId, this);
    imeMail.setKeySetFunc('qwerty');

现在只关注输入字段:

  

的jQuery( “#MessageText中”)聚焦();

有关详情,请查看上述网址 快乐的编码!