Skip to content

Commit 6d3ed8f

Browse files
committed
Clarify shared Crumble paste helper
1 parent fca85a1 commit 6d3ed8f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

glue/crumble/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,11 @@ async function pasteFromClipboard(preview) {
394394
}
395395

396396
/**
397+
* Applies already-read clipboard text at the current focus.
398+
*
399+
* Text can come from navigator.clipboard for Ctrl+V, or from a browser paste
400+
* event for Cmd+V. Keeping this shared avoids duplicating paste behavior.
401+
*
397402
* @param {!string} text
398403
* @param {!boolean} preview
399404
*/

0 commit comments

Comments
 (0)