function gridToPadding(keyInfo) {

const
e      = keyInfo[0],
kC     = keyInfo[1],
cC     = keyInfo[2],
shift  = keyInfo[3],
ctrl   = keyInfo[4],
alt    = keyInfo[5];

if (coinFocus!=null&&(lastKey=="p"||lastKey=="P")) {

let groupAction;
       if (coinFocus.dataset.coinTrip==Ts0) {
groupAction = coinTrip.sel0;
} else if (coinFocus.dataset.coinTrip==Ts1) {
groupAction = coinTrip.sel1;
} else if (coinFocus.dataset.coinTrip==Ts2) {
groupAction = coinTrip.sel2;
}

       if (coinFocus.lastElementChild.firstElementChild.nextElementSibling.style.padding==T+"px") {
coinFocus.lastElementChild.firstElementChild.nextElementSibling.style.padding = "inherit";

if (shift) { for (let j = 0; j < groupAction.length; j++) {
groupAction[j].lastElementChild.firstElementChild.nextElementSibling.style.padding = "inherit";
} }

} else {
coinFocus.lastElementChild.firstElementChild.nextElementSibling.style.paddingLeft   = T + "px";
coinFocus.lastElementChild.firstElementChild.nextElementSibling.style.paddingRight  = T + "px";
coinFocus.lastElementChild.firstElementChild.nextElementSibling.style.paddingTop    = T + "px";
coinFocus.lastElementChild.firstElementChild.nextElementSibling.style.paddingBottom = T + "px";
paddingTunedLeftRight = T;

if (shift) { for (let j = 0; j < groupAction.length; j++) {
groupAction[j].lastElementChild.firstElementChild.nextElementSibling.style.paddingLeft   = T + "px";
groupAction[j].lastElementChild.firstElementChild.nextElementSibling.style.paddingRight  = T + "px";
groupAction[j].lastElementChild.firstElementChild.nextElementSibling.style.paddingTop    = T + "px";
groupAction[j].lastElementChild.firstElementChild.nextElementSibling.style.paddingBottom = T + "px";
paddingTunedLeftRight = T;
} }

}
}
}
