Skip to content

Commit 33e9a9a

Browse files
committed
update comment
1 parent e9e3109 commit 33e9a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/comp/Paste.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async function handleClipboardImages(editor, dropzone, images, e) {
121121
}
122122

123123
function handleClipboardText(textarea, text, e) {
124-
// when pasting links over selected text, turn it into [text](link)
124+
// when pasting links over selected text, turn it into [text](link), except when shift key is held
125125
const {value, selectionStart, selectionEnd, _giteaShiftDown} = textarea;
126126
if (_giteaShiftDown) return;
127127
const selectedText = value.substring(selectionStart, selectionEnd);

0 commit comments

Comments
 (0)