简体   繁体   English

Windows IoT上的Windows通用应用程序中的屏幕键盘?

[英]On-screen keyboard in Windows Universal App on Windows IoT?

Is it possible to show the On-Screen Keyboard (osk) in a Windows Universal App on Windows 10 IoT Core? 是否可以在Windows 10 IoT Core上的Windows通用应用程序中显示屏幕键盘(osk)? The raspberry pi only has a mouse attached and when I click on a textbox I'd like to show the osk. 树莓派只附有一只鼠标,当我点击文本框时,我想要显示osk。

I can set the InputScope and IsTextPredictionEnabled but can't figure out how to trigger the osk to show. 我可以设置InputScope和IsTextPredictionEnabled,但无法弄清楚如何触发显示的osk。

There is an example here of an on screen keyboard. 这里有一个屏幕键盘的例子。 If you look at the sample they are using one in their web browser. 如果您查看他们在Web浏览器中使用的示例。 This is a pretty good keyboard but it would be better to have the default windows keyboard 这是一个非常好的键盘,但最好有默认的Windows键盘

https://github.com/ms-iot/samples/tree/develop/DigitalSign https://github.com/ms-iot/samples/tree/develop/DigitalSign

If it was up to me I would prefer the default OSK since you can specify slightly different keyboard layouts based on inputs. 如果由我决定,我更喜欢默认的OSK,因为您可以根据输入指定略有不同的键盘布局。 I don't like this one because the text box loses focus which can limit the use of action listeners that you can use. 我不喜欢这个,因为文本框失去了焦点,这会限制你可以使用的动作监听器的使用。 Hopefully this is something that gets enable in future builds but for now this is a pretty good keyboard you can steal so you don't have to start from scratch. 希望这可以在未来的版本中实现,但是现在这是一个非常好的键盘,你可以偷,所以你不必从头开始。

On a side note you should upvote in Windows Feedback under "Developer Platform/ Windows 10 IoT Core". 另外,您应该在Windows Developer的“Developer Platform / Windows 10 IoT Core”下进行提升。 There should be a suggestion open. 应该有一个建议开放。

I asked that question back in July on the MSDN forums. 我在7月份的MSDN论坛上回答了这个问题。 The answer that I got was: 我得到的答案是:

"This has been answered here: “这已在这里得到解答:

https://social.msdn.microsoft.com/Forums/en-US/d81ebfa0-ccdc-479e-8e2f-bc921de17343/onscreen-keyboard?forum=WindowsIoT https://social.msdn.microsoft.com/Forums/en-US/d81ebfa0-ccdc-479e-8e2f-bc921de17343/onscreen-keyboard?forum=WindowsIoT

There's no onscreen keyboard available at the moment. 目前没有可用的屏幕键盘。 There's the possibility that one will be added later, but it's not guaranteed. 以后可能会添加一个,但不能保证。 If you read the linked post you also find an explanation as to why none is available." 如果您阅读链接的帖子,您还可以找到解释为什么没有可用的帖子。“

Just for reference, here's the link to the MSDN question that I asked: https://social.msdn.microsoft.com/Forums/en-US/9c95f424-f0ca-4751-9497-a019c1d40907/touch-keyboard?forum=WindowsIoT 仅供参考,以下是我询问的MSDN问题的链接: https//social.msdn.microsoft.com/Forums/en-US/9c95f424-f0ca-4751-9497-a019c1d40907/touch-keyboard?forum=WindowsIoT

And here's the answer from the linked post: 以下是链接帖子的答案:

"At the moment there is no On-Screen Keyboard available. If you want a user to input something via the screen then you'll want to provide the UI for that input in your application. Part of the reason for this is that we don't have a 'shell' like explorer that is there helping control what app is running or providing other services such as SIP / OSK as is handled on the desktop. “目前没有可用的屏幕键盘。如果您希望用户通过屏幕输入内容,那么您需要在应用程序中提供该输入的UI。部分原因是我们不喜欢没有像探险家这样的'shell',它可以帮助控制正在运行的应用程序,或提供桌面上处理的SIP / OSK等其他服务。

Longer term I believe this is something that the product team is considering / looking into but I do not have any timeline on if or when it might be an option (if ever). 从长远来看,我认为这是产品团队正在考虑/研究的问题,但我没有任何时间表,如果或何时可能是一个选项(如果有的话)。 If I learn otherwise I will let you know. 如果我不知道,我会告诉你。

I hope that helps." 我希望有所帮助。“

From https://social.msdn.microsoft.com/Forums/en-US/d81ebfa0-ccdc-479e-8e2f-bc921de17343/onscreen-keyboard?forum=WindowsIoT : - 来自https://social.msdn.microsoft.com/Forums/en-US/d81ebfa0-ccdc-479e-8e2f-bc921de17343/onscreen-keyboard?forum=WindowsIoT : -

There is one available (I think since 14986). 有一个可用(我认为自14986年以来)。 You have to enable it in the device portal under "Device Settings" > "On-screen Keyboard". 您必须在“设备设置”>“屏幕键盘”下的设备门户中启用它。

Thursday, January 05, 2017 12:57 PM 2017年1月5日星期四下午12:57

本答案中所述 ,如果您有最新版本,请从Windows设备门户中检查屏幕键盘。

I wanted to post the workaround that I came up with, but I didn't have enough rep points yet to include more than 2 links. 我想发布我提出的解决方法,但我还没有足够的重复点来包含2个以上的链接。 So I'm posting it as another answer. 所以我将其作为另一个答案发布。

Here it is: And for those interested, I wrote up a very basic example of a osk-UI element. 这是:对于那些感兴趣的人,我写了一个osk-UI元素的一个非常基本的例子。 The Idea was to create something that could be reused if necessary. 想法是创造一些可以在必要时重复使用的东西。 It's also not the fastest thing but maybe it will give you ideas. 它也不是最快的东西,但它可能会给你一些想法。 Its basically a UserControl inside a Popup. 它基本上是一个Popup内的UserControl。 When a Textbox gets focused, it fires an event that sets the "Keyboard Popup"'s DataContext to that of the Textbox and shows the "Keyboard". 当文本框聚焦时,它会触发一个事件,将“键盘弹出”的DataContext设置为文本框的DataContext并显示“键盘”。

I dropped it into a .zip file and uploaded it to my Box.com account. 我将其放入.zip文件并上传到我的Box.com帐户。

Here's the project folder: https://app.box.com/s/vsf1wclaivsan4hhu2u2qdrb2awnbspu 这是项目文件夹: https//app.box.com/s/vsf1wclaivsan4hhu2u2qdrb2awnbspu

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

相关问题 在Windows 10 IoT核心版上的Windows Universal App中手动触发屏幕键盘吗? - Manually trigger on-screen keyboard in Windows Universal App on Windows 10 IoT Core? 在Windows应用商店应用程序中的文本框焦点事件弹出屏幕键盘 - Popup On-Screen Keyboard On Text-box Focus Event in Windows Store App 响应Windows Store C#/ XAML应用中屏幕键盘的外观 - Responding to the appearance of the on-screen keyboard in windows store c#/XAML app 如何在 C# WinForms 中使用 Windows 屏幕键盘 - How to use Windows On-Screen Keyboard in C# WinForms C#如何在windows xp / 7中禁用屏幕键盘声音 - C# how to disable on-screen keyboard sound in windows xp/7 具有触摸屏功能的Windows应用程序(C ++ / C#)的屏幕键盘 - On-screen keyboard for Windows apps (C++/C#) with touch-screen capability 在Windows 10 IoT中更改屏幕键盘语言的布局 - Change On-Screen-Keyboard language layout in windows 10 iot 在Windows 10 Universal App上捕获应用程序的屏幕 - Capture screen of the application on a Windows 10 Universal App 我如何以编程方式操作Windows 7屏幕键盘osk:移动,调整大小,删除标题栏/标题 - How can i programmatically manipulate the Windows 7 on-screen keyboard osk: Move, Resize, Remove Titlebar/Caption 屏幕键盘WPF - On-Screen Keyboard WPF
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM