Sitelet https://github.com/eight04/angular-datetime/issues/25
Skip to content

Jump on next node on separator key press #25

Description

@MartinNuc

People in my country are used to write date in this format: DD. mm. YYYY

However when I fill days with single digit (eg. 5th November) I have to press right arrow to jump to the month part.

It would be great if I could press a . (or -, / for other locales) to jump to the month part.

I would like to create PR but want to discuss this feature first. These are possible solutions coming to my mind:

  1. check for keypresses for all separators regardless user's locale. Means to listen on all keycodes like 190, 189 etc
  2. somehow detect separator in the pattern and listen only for that keypress
  3. listen for keypress based on user's locale

Personally I think the easiest and sufficient solution is the 1.

What do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions