简体   繁体   English

是否可以使用javascript在Windows触摸键盘上玩耍?

[英]Is it possible to play around with windows touch keyboard using javascript?

I'm developing a Kiosk application using Electron. 我正在使用Electron开发Kiosk应用程序。 But when I tested the app on an actual kiosk with windows 8 OS, the on screen key board is not launching. 但是,当我在带有Windows 8 OS的实际信息亭中测试该应用程序时,屏幕键盘没有启动。 Is it possible I can manually enable keyboard by using JavaScript? 我可以使用JavaScript手动启用键盘吗? I searched along for the answer but didn't got any proper answer. 我一直在寻找答案,但没有任何适当的答案。 Also I would like to change the language of the keyboard with users preference? 我也想根据用户的喜好更改键盘的语言吗? Can I do these using windows on screen keyboard? 我可以使用屏幕键盘上的窗口执行这些操作吗?

How exactly you create kiosk mode? 您如何精确创建信息亭模式? By replacing shell or/and use full screen application? 通过替换外壳或/和使用全屏应用程序? If so - you need to use own internal keyboard. 如果是这样-您需要使用自己的内置键盘。 Windows keyboard available only if explorer running and no full screen application running. Windows键盘仅在运行资源管理器且未运行全屏应用程序时可用。

I ran across this while researching a similar issue. 在研究类似问题时,我遇到了这个问题。 If you are using a Windows Shell Launcher (details here ), then you may still be in luck. 如果您使用的是Windows Shell启动器( 此处有详细信息),那么您可能仍然很幸运。 The "Touch Keyboard and Handwriting Service" service is still available using this method. 使用此方法仍可以使用“触摸键盘和手写服务”服务。 You can test that the keyboard is accessible by opening Task Manager and trying to run a new task. 您可以通过打开任务管理器并尝试运行新任务来测试键盘是否可访问。 If the keyboard pops when you tap the input field there, the keyboard is working at the OS level. 如果在您点击此处的输入字段时弹出键盘,则表明该键盘在操作系统级别上工作。

If the keyboard is not opening at the OS level, it may require starting the Touch Keyboard service or setting a couple registry keys like: HKCU\\Software\\Microsoft\\TabletTip\\1.7\\EnableDesktopModeAutoInvoke = 1 HKCU\\Software\\Microsoft\\windows\\CurrentVersion\\ImmersiveShell\\TabletMode = 1 如果键盘未在操作系统级别打开,则可能需要启动触摸键盘服务或设置几个注册表项,例如:HKCU \\ Software \\ Microsoft \\ TabletTip \\ 1.7 \\ EnableDesktopModeAutoInvoke = 1 HKCU \\ Software \\ Microsoft \\ windows \\ CurrentVersion \\ ImmersiveShell \\ TabletMode = 1

All of this said, there have been some issues with how Chrome interacts with the Touch Keyboard starting sometime around Chrome 49-50. 综上所述,从Chrome 49-50开始,Chrome与触摸键盘的交互方式一直存在一些问题。 Updating to the latest Chrome fixed the issue for me (51.0.2707.106m). 更新到最新的Chrome浏览器为我解决了此问题(51.0.2707.106m)。 I imagine there would also be some overlap since Electron uses Chromium from what I understand. 我想也可能会有一些重叠,因为Electron根据我的理解使用铬。

PS - I just realized this question was for Windows 8. Although my experiences were with Windows 10, I believe the same advice should apply. PS-我刚刚意识到这个问题是针对Windows 8的。尽管我的经验是Windows 10,但我认为同样的建议也适用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有一种方法可以使用JavaScript控制iPod Touch的键盘方向? - is there a way to control the iPod Touch’s keyboard orientation using JavaScript? 是否可以使用HTML5 / javascript播放此流? - Is it possible to play this stream using HTML5/javascript? 是否可以使用JavaScript在浏览器中播放合成声音? - Is it possible to play synthesized sound in the browser using JavaScript? HTML文本输入 - 防止Windows 8触摸键盘? - HTML text input - Prevent Windows 8 touch keyboard? Windows8桌面模式的触摸键盘问题 - Touch keyboard issue with Desktop mode of Windows8 是否有可能知道在使用javascript的具有触摸功能的设备上是否使用了真正的鼠标? - Is it possible to know if a real mouse is used on a device with touch features using javascript? 我已经使用 if 和 else 来使用 click 播放音乐,但是如何在 Javascript 中使用键盘播放音乐? - I have used if and else to play the music using click but How can I play music using keyboard in Javascript? 如何使用Jquery / Javascript在运行Windows的PC上实现触摸功能? - How to implment touch funcationality on a PC running Windows using Jquery/Javascript? 将JavaScript游戏的键盘控件转换为触摸界面 - Converting Keyboard controls of a javascript game to touch interface 键盘触摸上的jQuery / JavaScript检查输入字段 - Jquery/Javascript check input fields on keyboard touch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM