The current implementation of Timebox is quite a mess from a usability perspective for keyboard users. Just use the following script and try to use keyboard navigation to focus the timebox and enter a time like 16:30...
[code]
<zk>
<textbox onCreate="self.focus()" />
<timebox format="HH:mm" onCreate="self.value = new Date()" />
</zk>
[/code]
Do you see what I mean? Any chance to get the old behaviour from ZK3 or at least something which works more intuitive for people entering times via keyboard?
I can navigate the timebox with keyboard, what is your problem?
The only one issue is that, you can't copy/paste/clear the time in ZK5, due to the feature of supporting any time format, like Java can.
When the timebox gets focus (using tab moving from textfield to timebox), I want to be able to type the following keys to enter 16:30:
"1" "6" "3" "0"
At the moment entering "1" "6" will change the minutes, not the hours which is absolute counter-intuitive.
Did you mean the type should always from left to right when the timebox is focused?
If yes, what is the behavior of the format?
<timebox format="a HH:mm" width="150px" onCreate="self.value = new Date()" />
only change the format of HH or a?
At the moment we have the following situation: when you'll tab into the timebox, the whole field is selected. If you start to enter a time (as users always do instantly), this will change the minutes (the value on the right). Usually you'll expect to change values "in displayed order", so start with the hours, then the minutes (for a format like hh:mm). If you have "a HH:mm" I would expect to change "a" first, then "HH", then "mm".
Fixed since 2010/02/23.
Change the usage behavior from left to right, if the 'a' format is used at the first like (a HH:mm), the value can't change by pressing keyboard except the key UP/Down.
Update the usage change, if the number user typed cannot be changed, the time field handler will be moved to the next time filed, for example, like (a HH:mm), the first field cannot be changed with the number, so the number will be changed at the next field, i.e. (HH).