Prevent current_editing_chunk from being a non-chunk element
This commit is contained in:
parent
f0962155b8
commit
7059c18f70
|
@ -622,7 +622,9 @@ function setadventure(state) {
|
||||||
|
|
||||||
function autofocus(event) {
|
function autofocus(event) {
|
||||||
if(connected) {
|
if(connected) {
|
||||||
|
if(event.target.tagName == "CHUNK") {
|
||||||
current_editing_chunk = event.target;
|
current_editing_chunk = event.target;
|
||||||
|
}
|
||||||
event.target.focus();
|
event.target.focus();
|
||||||
} else {
|
} else {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in New Issue