simonpoole/OpeningHoursFragment

Reparse text input after interaction

Opened this issue · 2 comments

Above the gui is an editable text input.
Every change is reparsed and auto corrected after each char change.
For example ´08:00-12:00´
Adding a comma after it, the empty rule is detected and removed. So my new comma is killed while typing.

Type faster :-) (there is on purpose a slight delay before the input is reparsed it is not character by character).

Seriously adding the , will create a new rule field (with the correct semantics, you should add the required fields to it via the menus.

Essentially the text field is there for initial clean up of non-parseable stuff and to correct minor typos, it is not really conceived as a way to input a complete OH value.

Type faster :-)

Sorry, i am not able to enter a valid rule in < 300 ms. :-)

Essentially the text field is there for initial clean up of non-parseable stuff and to correct minor typos, it is not really conceived as a way to input a complete OH value.

Hm. You are right. There we need the direct parse :-|