Can I change how selecting results works?

Can I select the highlighted result when the dropdown is closed?

$('select').select2({
  selectOnClose: true
});
{% include options/not-written.html %}

Can I prevent the dropdown from closing when a result is selected?

$('select').select2({
  closeOnSelect: false
});
{% include options/not-written.html %}