Merge pull request #3684 from count-infinity/3658-bug-input-autofocus
3658 bug input autofocus
This commit is contained in:
commit
ceaea315c4
2 changed files with 8 additions and 3 deletions
|
|
@ -300,6 +300,14 @@ let goldenlayout = (function () {
|
||||||
let typelist = document.getElementById("typelist");
|
let typelist = document.getElementById("typelist");
|
||||||
let updatelist = document.getElementById("updatelist");
|
let updatelist = document.getElementById("updatelist");
|
||||||
|
|
||||||
|
if(tab?.componentName !== 'options')
|
||||||
|
{
|
||||||
|
window.plugins["default_in"].setKeydownFocus(true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
window.plugins["default_in"].setKeydownFocus(false);
|
||||||
|
}
|
||||||
|
|
||||||
if( renamebox ) {
|
if( renamebox ) {
|
||||||
closeRenameDropdown();
|
closeRenameDropdown();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -75,14 +75,12 @@ let options2 = (function () {
|
||||||
.click( function () {
|
.click( function () {
|
||||||
optionsContainer = null;
|
optionsContainer = null;
|
||||||
tab.contentItem.remove();
|
tab.contentItem.remove();
|
||||||
window.plugins["default_in"].setKeydownFocus(true);
|
|
||||||
});
|
});
|
||||||
optionsContainer = tab.contentItem;
|
optionsContainer = tab.contentItem;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
main.parent.addChild( optionsComponent );
|
main.parent.addChild( optionsComponent );
|
||||||
|
|
||||||
window.plugins["default_in"].setKeydownFocus(false);
|
|
||||||
} else {
|
} else {
|
||||||
optionsContainer.remove();
|
optionsContainer.remove();
|
||||||
optionsContainer = null;
|
optionsContainer = null;
|
||||||
|
|
@ -151,7 +149,6 @@ let options2 = (function () {
|
||||||
// don't claim this Prompt as completed.
|
// don't claim this Prompt as completed.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
var init = function() {
|
var init = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue