简体   繁体   English

使jQuery Datepicker继续在持久按键上导航

[英]Make jQuery Datepicker keep navigating on persistent keypress

I have the jQuery Datepicker on my app. 我的应用程序上有jQuery Datepicker。 I have searched the docs over and over for an option to enable continued keyboard navigation on persistent keypress. 我一遍又一遍地在文档中搜索了一个选项,以启用对持久按键的连续键盘导航。

By default, Ctrl+Arrow will move the date one step in any of the 4 directions. 默认情况下, Ctrl+Arrow将在4个方向中的任何一个方向上将日期移动一步。 (I have actually extended this functionality to happen also on Arrow keys, as it seems more intuitive to me). (实际上,我已经将此功能扩展到了Arrow键上,对我来说似乎更直观)。

What I now need: 我现在需要的是:

To have the current date selection keep moving during one continuous keypress, rather than require intermittent keypresses. 要使当前日期选择在一键连续按下期间保持移动,而不是需要间歇键按下。 The utility of this behaviour becomes more obvious when you need to navigate back 3 or more decades. 当您需要回溯3年或更长时间时,此行为的效用变得更加明显。 Continuous navigation is actually the behaviour of the Windows calendar (near the system tray), as well as one Dynarch Calendar that I have been using for ages. 连续导航实际上是Windows日历(在系统托盘附近)以及我使用了一段时间的Dynarch日历的行为。

Since there seems to be no native option, any workaround, or plugin would be acceptable. 由于似乎没有本机选项,因此任何解决方法或插件都是可以接受的。

Thanks in advance! 提前致谢!

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

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