geocloud2
geocloud2 copied to clipboard
Slightly annoying/confusing behavior when typing a value in a drop down menu that also allows typing a value
In the classes editor for a layer. Some fields, eg "line cap" has a drop down menu but does not allow the user to type a value. Other fields with a drop down menu also allows typing a value, eg "geotransform" and "symbol". Below I will use "symbol" as an example.
This drop down menu actually does contain an item with the empty string (or NULL or whatever), so it is possible to click it with the mouse and have the value unset.
It is also possible to select the item with the empty string if you use up and down arrows on the keyboard, and then click enter.
However, if the value is set, eg to "square", and you set the typing cursor in the field, and delete the string with backspace, and then press enter or tab, it will set to the previous value, "square", which is not the expected behavior. This is because the drop down menu will show all "matching" items for the empty string, which are all of them, and have the previous value selected. See screen shot below.
If the field is unset, and I click it with the mouse and then ctrl+v "circle", this "circle" string is inserted, but (most times though not every time) the drop down menu does not filter based on what was pasted, and therefore if I press enter, the empty string is selected. See screenshot below.
I know these are minor issues, but I will share here and let the community decide if they are worth doing anything about.