fixed usage of input fields
This commit is contained in:
parent
7c1465428f
commit
d10c48f2b9
@ -83,10 +83,10 @@
|
||||
const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]')
|
||||
const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl))
|
||||
</script>
|
||||
<!-- Select search field on start of QR scan ([) -->
|
||||
<!-- Select search field on start of QR scan if no input is currently selevted([) -->
|
||||
<script type="text/javascript">
|
||||
window.addEventListener("keydown", (event)=>{
|
||||
if (event.key == '[') {
|
||||
if (document.activeElement.nodeName != 'INPUT' && event.key == '[') {
|
||||
document.getElementById("qr_search_field").focus()
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user