User:Fred Gandt/allowTabs.js

$( document ).ready( => {	"use strict";	const TB1 = document.getElementById( "wpTextbox1" );	if ( TB1 && !TB1.nextElementSibling ) {		TB1.addEventListener( "keydown", evt => { if ( evt.key === "Tab" ) { const SS = TB1.selectionStart; evt.preventDefault; TB1.value = `${TB1.value.substr( 0, SS )}	${TB1.value.substr( TB1.selectionEnd )}`; TB1.setSelectionRange( SS + 1, SS + 1 ); }		} );	} } );