Make ComboBox ignore Enter key


I have ComboBoxes in my UI. When the user clicks on one of them, it displays the list of choices. Then, when pressing enter, the list of choices appears again, as if the component gained keyboard focus, despite setting:


How to really make the ComboBox ignore the enter key?


Had the same issue and found the solution here: