Press Ctrl+Enter to start a task

This commit is contained in:
cmdr2 2022-11-10 14:59:01 +05:30
parent 058ce6fe82
commit 0da6354825
2 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,7 @@
<div id="container">
<div id="top-nav">
<div id="logo">
<h1>Stable Diffusion UI <small>v2.3.12 <span id="updateBranchLabel"></span></small></h1>
<h1>Stable Diffusion UI <small>v2.3.13 <span id="updateBranchLabel"></span></small></h1>
</div>
<div id="server-status">
<div id="server-status-color"></div>

View File

@ -1082,6 +1082,12 @@ useUpscalingField.addEventListener('change', function(e) {
makeImageBtn.addEventListener('click', makeImage)
document.onkeydown = function(e) {
if (e.ctrlKey && e.code === 'Enter') {
makeImage()
e.preventDefault()
}
}
function updateGuidanceScale() {
guidanceScaleField.value = guidanceScaleSlider.value / 10