eight04 / angular-datetime

A directive to add the behavior of datetime input on unsupported browsers.
MIT License
93 stars 28 forks source link

Binding keys to switch between parts of the date #36

Closed wayjake closed 8 years ago

wayjake commented 8 years ago

This directive looks amazing. I wonder if it would be possible to bind the tab/space/enter key to move on to the next part of the date. It seems like that would make it just a little more intuitive.

eight04 commented 8 years ago

Chrome use Tab/Shift-Tab for moving between different parts too. 👍 But I don't think using space and enter is more intuitive, and enter is used to submit the form.

wayjake commented 8 years ago

Thank you for the response. Tab jumps from the current input to the next input. I would expect each date item either YY or DD or MM or whatever it is to be tab-able, so that when you tab to day then to month it then goes on the the next input in your form.

eight04 commented 8 years ago

Why closing this? I think it is a good idea.

wayjake commented 8 years ago

Sorry that was an accident :)

eight04 commented 8 years ago

https://rawgit.com/eight04/angular-datetime/dev-tab/example/demo.html

wayjake commented 8 years ago

Wow, flawless!!!!

eight04 commented 8 years ago

Fixed in v4.0.0.