Skip to content

Commit d81a316

Browse files
richard-fung-dbmarijnh
authored andcommitted
fix the paste operation when the cell is unfocused
1 parent c955a0f commit d81a316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function handlePaste(e, cm) {
7272
let pasted = e.clipboardData && e.clipboardData.getData("Text")
7373
if (pasted) {
7474
e.preventDefault()
75-
if (!cm.isReadOnly() && !cm.options.disableInput)
75+
if (!cm.isReadOnly() && !cm.options.disableInput && cm.hasFocus())
7676
runInOp(cm, () => applyTextInput(cm, pasted, 0, null, "paste"))
7777
return true
7878
}

0 commit comments

Comments
 (0)