mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
3658 setKeyDownFocus on tab change
This commit is contained in:
parent
1ad1cf9fc1
commit
6309243b87
2 changed files with 10 additions and 4 deletions
|
|
@ -300,6 +300,14 @@ let goldenlayout = (function () {
|
|||
let typelist = document.getElementById("typelist");
|
||||
let updatelist = document.getElementById("updatelist");
|
||||
|
||||
if(tab?.componentName !== 'options')
|
||||
{
|
||||
window.plugins["default_in"].setKeydownFocus(true);
|
||||
}
|
||||
else {
|
||||
window.plugins["default_in"].setKeydownFocus(false);
|
||||
}
|
||||
|
||||
if( renamebox ) {
|
||||
closeRenameDropdown();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,14 +75,12 @@ let options2 = (function () {
|
|||
.click( function () {
|
||||
optionsContainer = null;
|
||||
tab.contentItem.remove();
|
||||
window.plugins["default_in"].setKeydownFocus(true);
|
||||
});
|
||||
optionsContainer = tab.contentItem;
|
||||
}
|
||||
});
|
||||
main.parent.addChild( optionsComponent );
|
||||
|
||||
window.plugins["default_in"].setKeydownFocus(false);
|
||||
} else {
|
||||
optionsContainer.remove();
|
||||
optionsContainer = null;
|
||||
|
|
@ -150,7 +148,7 @@ let options2 = (function () {
|
|||
|
||||
// don't claim this Prompt as completed.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
|
|
@ -183,7 +181,7 @@ let options2 = (function () {
|
|||
onOptionsUI: onOptionsUI,
|
||||
onPrompt: onPrompt,
|
||||
onOptionCheckboxChanged: onOptionCheckboxChanged,
|
||||
onOpenCloseOptions: onOpenCloseOptions,
|
||||
onOpenCloseOptions: onOpenCloseOptions
|
||||
}
|
||||
})();
|
||||
window.plugin_handler.add("options2", options2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue