Skip to content

Commit 4747aed

Browse files
committed
Update codeit.js
1 parent 69cf40b commit 4747aed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/codeit.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,14 @@ class CodeitElement extends HTMLElement {
380380
cd.on('keyup', (event) => {
381381

382382
if (shouldRecord(event) && recording) {
383+
384+
onNextFrame(recordHistory);
383385
recording = false;
386+
384387
}
385388

386389
});
387390

388-
cd.on('type', () => {
389-
recordHistory();
390-
});
391-
392391

393392
cd.on('keydown mousedown mouseup touchstart touchend focus blur',
394393
() => { onNextFrame(checkCaretPosEvent) }, false);

0 commit comments

Comments
 (0)