mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Merge pull request #15185 from thoys/fix/create/stopReselectionWhenFocussed
Case 21653: Fix User is not able to update input fields and scroll past selected object in Create Tools [master]
This commit is contained in:
commit
98eec6b74d
2 changed files with 9 additions and 2 deletions
|
@ -459,7 +459,7 @@ function loaded() {
|
|||
isRenameFieldBeingMoved = true;
|
||||
document.body.appendChild(elRenameInput);
|
||||
// keep the focus
|
||||
elRenameInput.select();
|
||||
elRenameInput.focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -475,7 +475,7 @@ function loaded() {
|
|||
elCell.innerHTML = "";
|
||||
elCell.appendChild(elRenameInput);
|
||||
// keep the focus
|
||||
elRenameInput.select();
|
||||
elRenameInput.focus();
|
||||
isRenameFieldBeingMoved = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -3325,6 +3325,13 @@ function loaded() {
|
|||
}
|
||||
|
||||
let hasSelectedEntityChanged = lastEntityID !== '"' + selectedEntityProperties.id + '"';
|
||||
|
||||
if (!hasSelectedEntityChanged && document.hasFocus()) {
|
||||
// in case the selection has not changed and we still have focus on the properties page,
|
||||
// we will ignore the event.
|
||||
return;
|
||||
}
|
||||
|
||||
let doSelectElement = !hasSelectedEntityChanged;
|
||||
|
||||
// the event bridge and json parsing handle our avatar id string differently.
|
||||
|
|
Loading…
Reference in a new issue