WSuggestionPopup::setDefaultIndex fails to set no default (-1)
Added by Ed Base about 12 years ago
Hello,
In WSuggestionPopup, by default the first item (0 index) is selected even with popup->setDefaultIndex(-1)
.
As a result, say a string Hello
could not be submitted in a form by pressing Enter if there is a string Hello World
already in the model. Hello World
is selected for any shorter string.
Please suggest a solution.
Regards
Replies (2)
RE: WSuggestionPopup::setDefaultIndex fails to set no default (-1) - Added by Koen Deforche about 12 years ago
Hey Ed,
I guess this is a matter of usability: you would prefer that no suggestion is selected by default and that a user must use 'down key' to move to the first entry ?
Regards,
koen
RE: WSuggestionPopup::setDefaultIndex fails to set no default (-1) - Added by Ed Base about 12 years ago
Hi Koen,
Exactly! But not necessarily by default. When it is set to do so with popup->setDefaultIndex(-1)
.
Regards