Focus while upload.
This commit is contained in:
parent
b0666a0090
commit
707788583a
src/snek
@ -49,6 +49,8 @@ class UploadButtonElement extends HTMLElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
request.send(formData);
|
request.send(formData);
|
||||||
|
const uploadEvent = new Event('upload',{});
|
||||||
|
this.dispatchEvent(uploadEvent);
|
||||||
}
|
}
|
||||||
channelUid = null
|
channelUid = null
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
|
@ -42,7 +42,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
document.querySelector("upload-button").addEventListener("upload",function(e){
|
||||||
|
getInputField().focus();
|
||||||
|
})
|
||||||
textBox.addEventListener("paste", async (e) => {
|
textBox.addEventListener("paste", async (e) => {
|
||||||
try {
|
try {
|
||||||
const clipboardItems = await navigator.clipboard.read();
|
const clipboardItems = await navigator.clipboard.read();
|
||||||
|
Loading…
Reference in New Issue
Block a user