Fix arbitrator language selection using arrow keys

To prevent the issue mentioned in
https://github.com/bisq-network/bisq/issues/354 where using arrow keys
to navigate the combobox would add the first language, utilize the
onHiding event rather than onAction event. This will add the selected
language when the combobox is closing.
This commit is contained in:
Devin Bileck 2018-10-12 23:35:37 -07:00
parent 56965c1904
commit cb42942d86
No known key found for this signature in database
GPG Key ID: C86D829C2399D073

View File

@ -204,7 +204,7 @@ public class ArbitratorSelectionView extends ActivatableViewAndModel<GridPane, A
return null; return null;
} }
}); });
languageComboBox.setOnAction(e -> onAddLanguage()); languageComboBox.setOnHiding(e -> onAddLanguage());
} }
private void addArbitratorsGroup() { private void addArbitratorsGroup() {