MCPcopy Create free account
hub / github.com/bigcode-project/jupytercoder / simulateUserPressingBackspace

Function simulateUserPressingBackspace

src/utility.js:445–450  ·  view source on GitHub ↗
(activeRequestTextarea)

Source from the content-addressed store, hash-verified

443}
444
445const simulateUserPressingBackspace = (activeRequestTextarea) => {
446 if (activeRequestTextarea) {
447 let event = new KeyboardEvent("keydown", { key: "Backspace", keyCode: 8, which: 8, code: "Backspace" });
448 activeRequestTextarea.dispatchEvent(event);
449 }
450}
451
452const simulateUserPressingMoveMouseRight = (activeRequestTextarea) => {
453 if (activeRequestTextarea) {

Callers 1

utility.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected