触摸键盘覆盖JavaScript应用程序中的输入表单 [英] Touch keyboard covers input forms in JavaScript apps

查看:87
本文介绍了触摸键盘覆盖JavaScript应用程序中的输入表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当appbar外部的输入元素被聚焦并且触摸键盘出现时,应用程序不会以任何方式滚动或调整大小以适应触摸键盘占用的空间,从而导致这样的情况在Notespace应用程序中: 
http://i.imgur.com/4DKvc.png  >   http://i.imgur.com/Xgn8W.png


是否有任何方法可以启用触控键盘自动滚动到聚焦输入元素?这是一个可怕的错误,阻止我们在appbar之外使用输入元素。


 

解决方案

< blockquote>

你好Juliana,


您会注意到NoteSpace会在您键入时滚动。 在该应用程序中,错误是appbar保持运行。 它应该被编写,以便appbar消失(当你玩它时,它会做一些真正奇怪的事情)。 
如果您继续输入,您会发现该视图将继续向下滚动并显示在视图中。


您的应用中是否还包含appbar,这就是您的意思正在体验?


您是否看过这个示例:
http://code.msdn.microsoft.com/windowsapps/Keyboard-Events-Sample-866ba41c


这会对你有所帮助了解这一切是如何协同工作的。


 


-Jeff


 


When an input element outside of the appbar is focused and the touch keyboard comes up, the app does not scroll or resize in any way to accomodate the space taken by the touch keyboard, leading to situations such as this one in the Notespace app:  http://i.imgur.com/4DKvc.png > http://i.imgur.com/Xgn8W.png

Is there any way that the touch keyboard can be enabled to automatically scroll to the focused input element? This is a terrible bug that is blocking us from using input elements outside of the appbar.

 

解决方案

Hi Juliana,

You will notice that NoteSpace does scroll as you type.  In that application the bug is that the appbar stays up.  It should have been written so that the appbar disappears (it is doing some real strange things you will see as you play with it).  If you keep typing you will notice that the view will continue to scroll down and be in view.

Does your app have an appbar in it as well and is this what you are experiencing?

Have you taken a look at this sample: http://code.msdn.microsoft.com/windowsapps/Keyboard-Events-Sample-866ba41c

This will help you understand how this all works together.

 

-Jeff

 


这篇关于触摸键盘覆盖JavaScript应用程序中的输入表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆