Added a line to the paste method so that if text is selected, the pasted text substitute the selected text.
This commit is contained in:
parent
5423bc19d4
commit
341bea3c16
1 changed files with 3 additions and 0 deletions
|
@ -1018,6 +1018,9 @@ class RTFSelection implements ClipboardOwner, Transferable {
|
|||
}
|
||||
|
||||
public void paste() {
|
||||
/* added by AM. If we are pasting over selected text, such text
|
||||
such be substituted by the text to be pasted. */
|
||||
deleteCurrentSelection();
|
||||
paste(getSelectionStart());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue