Contains the Concourse pipeline definition for building a line-server container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
541 B

  1. // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
  2. function handleTab(ev) {
  3. // change tab key behavior to insert tab instead of change focus
  4. if(ev.keyCode == 9) {
  5. ev.preventDefault();
  6. var val = this.value;
  7. var start = this.selectionStart;
  8. var end = this.selectionEnd;
  9. this.value = val.substring(0, start) + '\t' + val.substring(end);
  10. this.selectionStart = start + 1;
  11. this.selectionEnd = end + 1;
  12. }
  13. }
  14. // @license-end