Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8553641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:41:56+00:00 2026-06-11T14:41:56+00:00

I use the jQuery UI datepicker to let the user select a date. It

  • 0

I use the jQuery UI datepicker to let the user select a date. It has some shortcuts so that it can be controlled using the keyboard:

page up/down      - previous/next month
ctrl+page up/down - previous/next year
ctrl+home         - current month or open when closed
ctrl+left/right   - previous/next day
ctrl+up/down      - previous/next week
enter             - accept the selected date
ctrl+end          - close and erase the date
escape            - close the datepicker without selection

But it seems not user friendly for me. I did not find out myself how to select a date with the keyboard until I read it in the documentation. I guess only few users will find out that they have to press “CTRL + arrow keys” to select a date.

Therefore, I would like to replace the keyboard shortcuts with some other ones. Especially I would like that the user does not have to press the “Control” key when navigating with the arrow keys between days and weeks.

Because I did not find any configuration about this in the documentation, I tried to achieve this aim using some custom javascript, where I listen for keyboard events and set the date manually. But it leads from one problem to another:

  • It does only work fine after the first date was selected
  • It interferes when the user uses “CTRL + arrow keys” after navigating with arrow keys only
  • The date in the input field is immediately updated, unlike when navigating with “CTRL + arrow keys” of the datepicker’s original keyboard control
  • Other shortcuts of the browser do not work because of event.preventDefault()

I know that all of this problems can be solved by additional Javascript again, but I would prefer it if I could just configure this somehow.

Is it possible to configure the shortcuts of the jQuery UI datepicker?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:41:57+00:00Added an answer on June 11, 2026 at 2:41 pm

    This is not configurable through datepicker. You would have to change the _doKeyDown method source here.

    The easiest way to do this would be to extend the widget. It would look something like this:

    $.extend($.datepicker, {
         _doKeyDown: function(event){
               //copy original source here with different
               //values and conditions in the switch statement
         }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jQuery's datepicker plugin in .NET ASP MVC3 intranet application. User that use
I would like to use jQuery in ASP.NET User Control. Can some one tell
I'm using Keith Wood's jQuery datepicker http://keith-wood.name/datepick.html to make a calendar that the user
I use jQuery to get values of presaved elements from some websites, using paths
I use JQuery Datepicker and cannot get data from it. In .html: <p>Date: <input
I use a jquery datepicker then i read it in my servlet like that:
I want to use the Jquery datepicker. I've got it setup using an the
I'm tyring to style the jQuery datepicker. I can't use a jQuery theme as
Got some questions about the php date function.... Here it goes.. I use jquery's
I want to use the jQuery UI Datepicker for the following scenario. The user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.