| Summary: | CompletionCombo jump to next entry, when character is entered multiple times | ||
|---|---|---|---|
| Product: | [RT] Riena | Reporter: | Steffen Kriese <steffen.kriese> |
| Component: | UI | Assignee: | Elias Volanakis <elias> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | christian.campo, elias |
| Version: | unspecified | ||
| Target Milestone: | 3.0.0 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Steffen Kriese
Method CompletionCombo.handleAutoCompletion() has been updated to detect, if a character was entered multiple times. The commit for this bug (1.15) has broken the CompletionCombo. To reproduce: 1. Go to CompletionCombo example in Playground 2. Type 'Dortmund' You notice that after 'D' is typed Dortmund is selected, after 'o' is typed it becomes deselected. This behavior does not exist prior to this commit (1.14). Shooting from the hip, but at first glance I think that the idea used here is wrong. One cannot compare the first character with the new character. Instead it should look at the last character and the new character... I'll experiment a little... Resolved. Reopening. Requirements have been changed / clarified. Here are the specs for AutoCompletionMode.FIRST_LETTER_MATCH: * The Combo selects the items beginning with the character that was * just typed (ignoring case). If no match is found the input is * ignored. When reaching the end of the list of matches, the selection * wraps around and continues from the beginning. * <p> * Examples: * <ul> * <li>'a' selects the 1st item beginning with 'a',</li> * <li>'aa' selects the 2nd item beginning with 'a',</li> * <li>'aaa' the 3rd item,</li> * <li>assumming there are only two items beginning with 'a', then 'aaa' * would wrap and select the 1st item,</li> * <li>'ad' selects the 1st item beginning with 'd'</li> * </ul> Resolved. |