public void paste() { moveCaret(); super.paste(); }
public void cut() { if (text.getCaretPosition() < commandPos) super.copy(); else super.cut(); }