feature/small-useability-improvements #20
@ -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