简体   繁体   English

需要控制键盘上的上一个/下一个按钮

[英]Need some control of Previous/Next buttons on keyboard

I am working with iScroll for an iPad web-app. 我正在为iPad Web应用程序使用iScroll。 When a user touches the next button (on top of the keyboard) focus jumps to a form element on another slide it breaks the scroller. 当用户触摸下一个按钮(位于键盘顶部)时,焦点将跳到另一张幻灯片上的表单元素上,从而中断了滚动条。

I have tried putting each slide in a separate form tag so it would grey out "next" when the end of the form is reached. 我尝试将每张幻灯片放在单独的表单标签中,以便在到达表单末尾时将其“变暗”为灰色。 This yielded no results and the button still jumps across slides. 这没有产生任何结果,并且按钮仍然在幻灯片之间跳转。

How can I remove the Prev/Next buttons or at least define boundaries for it? 如何删除上一个/下一个按钮或至少为其定义边界?

I've been trying to come up with an answer myself for a few days now. 我已经尝试了几天了。 It seems the next/back buttons traverse all input elements visible on the page (they don't even have to be in the same / any form). 似乎下一个/后退按钮遍历页面上所有可见的输入元素(它们甚至不必具有相同/任何形式)。

The best solution I've been able to come up with is to disable the input elements you don't want traversed. 我一直想出的最好的解决方案是禁用您不想遍历的输入元素。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM