title: Tab inside textarea element in Typescript/Angular
body: <p>i cannot find a solution of my issue with the tab inside a textarea. Everytime i use tap button it jumps to another textarea. Now I have come across a solution, which is, however, written in Javascript (Another one i found is written with jQuery) - but unfortunately I can't find a solution for Typescript.</p>
  <p>This is what i got for now (written in js):</p>
  <pre><code>    document.getElementById('textbox').addEventListener('keydown', function (e) {
         if (e.key == 'Tab') {
           e.preventDefault();
           var start = this.selectionStart;
           var end = this.selectionEnd;
           this.value = this.value.substring(0, start) + '\t' + this.value.substring(end);
           this.selectionStart = this.selectionEnd = start + 1;
         }
      });
  
          &lt;textarea pInputTextarea tabindex=&quot;0&quot; (keydown)=&quot;handleKeydown($event)&quot; onFocus=&quot;this.select();&quot; (input)=&quot;setOkayButtonMode()&quot;
              [rows]=&quot;10&quot; [cols]=&quot;75&quot; maxlength=&quot;255&quot;&gt;
          &lt;/textarea&gt;
  </code></pre>
  <p>I really can't find anything and Stackoverflow is the last port of call for my problem. Maybe one of you can help me :)</p>
  <p>Big thanks in the front!!</p>
  <p>greez
  Julian</p>