title: textarea on input issue
body: <p>i have a textarea where i want to capture the necessary events either them be from the keyboard or the mouse/edit menu. Now, when a user copy pastes a text in the textarea through CTRL-V, processUserInput is called twice, both on <strong>keydown</strong> and on <strong>paste</strong> which is undesirable for various reasons.</p>
  
  <p>i have "solved" it this way:</p>
  
  <pre><code>var IsProcessingEvent = false;
  
  $("#textarea").on('click keydown cut paste', processUserInput);
  
  function processUserInput(e) {
      if(!IsProcessingEvent) {
          IsProcessingEvent = true;
          // do the actual processing of user input
          IsProcessingEvent = false;
      }
  }
  </code></pre>
  
  <p>I was wondering if there is a more elegant solution to this problem.</p>
  
  <p>p.s the onpaste event is needed because the user may copy paste the text through the mouse right click or through the browser edit menu.</p>
  
  <p>thanks in advance!</p>