title: Print string to Caret position in JEditorPane when Ctrl+C is pressed
body: <p>I'm trying to print out a certain string to the current caret position in a JEditorPane when CTRL+C is pressed. I'm not sure how to handle two key events and print to current caret position. The APIs do not do a good job of describing them. I figure it would go something like this:</p>
  
  <pre><code>@Override 
  public void keyPressed( KeyEvent e) {
      if((e.getKeyChar()==KeyEvent.VK_CONTROL) &amp;&amp; (e.getKeyChar()==KeyEvent.VK_C))
          //JEditorPane.getCaretPosition();
          //BufferedWriter bw = new BufferedWriter();
          //JEditorPane.write(bw.write("desired string"));
  }
  </code></pre>
  
  <p>Can someone tell me if this would work?</p>