We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 653cef3 commit 69cf40bCopy full SHA for 69cf40b
lib/codeit.js
@@ -375,19 +375,21 @@ class CodeitElement extends HTMLElement {
375
overrideDeleteText(event);
376
377
});
378
+
379
380
cd.on('keyup', (event) => {
381
382
if (shouldRecord(event) && recording) {
-
383
- onNextFrame(recordHistory);
384
recording = false;
385
386
}
387
388
+ cd.on('type', () => {
389
+ recordHistory();
390
+ });
391
392
393
cd.on('keydown mousedown mouseup touchstart touchend focus blur',
394
() => { onNextFrame(checkCaretPosEvent) }, false);
395
0 commit comments