MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / textareafocus

Function textareafocus

api/prettydiff-webtool.ts:743–766  ·  view source on GitHub ↗
(event:Event)

Source from the content-addressed store, hash-verified

741 }
742 },
743 textareafocus = function dom_load_textareafocus(event:Event):void {
744 const el:HTMLElement = <HTMLElement>event.srcElement || <HTMLElement>event.target,
745 tabkey:HTMLElement = id("textareaTabKey"),
746 aria:HTMLElement = id("arialive");
747 if (tabkey === null) {
748 return;
749 }
750 tabkey.style.zIndex = String(data.zIndex + 10);
751 if (aria !== null) {
752 aria.innerHTML = tabkey.innerHTML;
753 }
754 if (options.mode === "diff") {
755 tabkey.style.right = "51%";
756 tabkey.style.left = "auto";
757 } else {
758 tabkey.style.left = "51%";
759 tabkey.style.right = "auto";
760 }
761 tabkey.style.display = "block";
762 if (test.ace === true) {
763 let item = <HTMLElement>el.parentNode;
764 item.setAttribute("class", `${item.getAttribute("class")} filefocus`);
765 }
766 };
767
768 // prep default announcement text
769 {

Callers

nothing calls this directly

Calls 1

idFunction · 0.85

Tested by

no test coverage detected