Skip to content

Conversation

RSO
Copy link
Contributor

@RSO RSO commented Jul 18, 2014

Supported keys:

  • ArrowUp: increase date type (year/month/day)
  • ArrowDown: decrease date type (year/month/day)
  • Enter: close date-picker

Fixes #26, #27

RSO added 2 commits July 11, 2014 19:50
Supported keys:
- ArrowUp: increase date type (year/month/day)
- ArrowDown: decrease date type (year/month/day)
- Enter: close date-picker
@martijnrusschen
Copy link
Member

@markijbema

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really a fan of using switch. Does our ci check that every case has a break? Otherwise it's really easy to introduce confusing errors here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed, it does.

By default JSHint warns when you omit break or return statements within switch statements

martijnrusschen added a commit that referenced this pull request Sep 4, 2014
Abstracted DateInput and added Key handlers
@martijnrusschen martijnrusschen merged commit 3ece956 into master Sep 4, 2014
@martijnrusschen martijnrusschen deleted the airplane/key-handlers branch September 4, 2014 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for up- and down keys in the input

3 participants