Skip to content

Commit

Permalink
fix alt-enter, control-enter key shortcuts for txt2img and img2img pr…
Browse files Browse the repository at this point in the history
…ompts
  • Loading branch information
anapnoe committed Nov 3, 2023
1 parent fa27966 commit 815d689
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ window.extraNetworksEditUserMetadata = function(event, tabname, extraPage, cardN
//event.stopPropagation();
}

window.get_uiCurrentTabContent = function(){
//console.log(active_main_tab);
if(active_main_tab.id === "tab_txt2img"){
return document.getElementById("txt2img_tabitem");
}else if(active_main_tab.id === "tab_img2img"){
return document.getElementById("img2img_tabitem");
}
}

async function getContributors(repoName, page = 1) {
let request = await fetch(`https://api.github.com/repos/${repoName}/contributors?per_page=100&page=${page}`, {
method: 'GET',
Expand Down Expand Up @@ -159,9 +168,7 @@ function mainTabs(element, tab) {
ntab.style.display = 'block';
//console.log(tab, ntab);
active_main_tab = ntab;

}

}

function setAttrSelector(parent_elem, content_div, count, index, length) {
Expand Down Expand Up @@ -818,9 +825,6 @@ function initDefaultComponents(content_div) {
el.classList.add('active');
callToAction(el, tids, pid);




});

const active = el.getAttribute("active");
Expand Down

0 comments on commit 815d689

Please sign in to comment.