Minor: Creating channel by typing adds extra channel

Very minor bug.

Steps:

  1. Create Field Magma
  2. Add ParticleSplat
  3. Instead of choosing from the list, type in “Temperature” (or any channel) and hit “add”. Temperature is added but so is item on the drop down list (“Absorption”).

Tobbe

You are supposed to hit ENTER to add what you typed.
The “Add…” button’s tooltip says “Press to Expose the Channel selected in the drop-down list”.
So when you press it while typing in the text field, two things happen - the text field loses focus, causing an ENTER to be sent implicitly which adds the channel to the list, and then the entry from the list is added too because that’s what the Add button does.

I will have to rethink this, or at least modify the UI layout so nobody comes to the idea to press the Add button to perform an Enter on the text field…
For example, I could add [+] buttons next to both the text field and the drop-down list, and remove the “on entered” handler of the text field, so losing focus does not add the channel. Then you will be expected to click the correct [+] button to use the respective source…

I think that would be a good idea. Users don’t always do what they are “supposed” to do :stuck_out_tongue:.