title: tokenSeparators in Select2
body: <p>Thanks in advance, two things:</p>
  
  <p>1- How can i take "Enter" and "Tab" keys as token in Select2?</p>
  
  <p>This is some of the code i have.</p>
  
  <pre><code>            $("#ListaValores").val($("#ListaValores").val().replace(/\;/g,','))
          $("#ListaValores").select2({
              tags: true,
              tokenSeparators: [';'],
              maximumResultsForSearch: -1,
              dropdownCss: {display:'none'},
          });
  </code></pre>
  
  <p>First line is just transforming the input so the data can be used by Select2.</p>
  
  <p>Original Input can be sth like this:</p>
  
  <pre><code>$("#ListaValores").val("value1;value2;value3")
  </code></pre>
  
  <p>These values are stored in a db and are loaded to a textbox that is then transformed to a select2.</p>
  
  <p>Everything is working as expect, but i would like to transform this part:</p>
  
  <pre><code>tokenSeparators: [';']
  </code></pre>
  
  <p>so it also accepts "Enter" and "Tab" keys as token.</p>
  
  <p>Can someone help? I tried ASCII codes but no luck.</p>
  
  <p>2- Plus, is there any tag to disable the spinner image?
  (since there is no data being loaded i don't really need a loading image appearing)</p>
  
  <p>UPDATE 2:</p>
  
  <p>I had some success with this:</p>
  
  <pre><code>$("#s2id_ListaValores").on('keyup', function(e) {
              if(e.keyCode === 13){
                  $("#ListaValores").val($("#ListaValores").val() + ';' + $("#s2id_autogen1").val())
              }
          });
  </code></pre>
  
  <p>But $("#s2id_autogen1").val() is not static and is always changing, so this kind of works once... plus, i would still need to update the results displayed. I can do it with with a "refresh" on the select2 div but then the div changes it's id, and the $("#s2id_ListaValores").on('keyup', function(e) event will not work.</p>