Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Mar 3, 2024
1 parent e9e3109 commit 33e9a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/comp/Paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function handleClipboardImages(editor, dropzone, images, e) {
}

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

0 comments on commit 33e9a9a

Please sign in to comment.