We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8fb65 commit 923bf9bCopy full SHA for 923bf9b
lib/codemirror.js
@@ -1389,9 +1389,11 @@
1389
// possible when it is clear that nothing happened. hasSelection
1390
// will be the case when there is a lot of text in the textarea,
1391
// in which case reading its value would be expensive.
1392
- if (!cm.state.focused || (hasSelection(input) && !prevInput) ||
+ if (this.contextMenuPending || !cm.state.focused ||
1393
+ (hasSelection(input) && !prevInput) ||
1394
isReadOnly(cm) || cm.options.disableInput || cm.state.keySeq)
1395
return false;
1396
+
1397
// See paste handler for more on the fakedLastChar kludge
1398
if (cm.state.pasteIncoming && cm.state.fakedLastChar) {
1399
input.value = input.value.substring(0, input.value.length - 1);
0 commit comments