gbv / SignaturenDruck

An electron application to print shelfmarks onto labels
https://verbundwiki.gbv.de/display/VZG/SignaturenDruck+der+ThULB+Jena
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

Barcode field looses focus after print #69

Open jsubhi opened 4 years ago

jsubhi commented 4 years ago

When using the "print immediately" function together with a barcode scanner the app will loose focus after a signature is printed. One has to klick onto the app before scanning the next barcode which is really annoying..

It seems that focus is transferred to Adobe Reader and does not return even after Reader quits.

This behaviour started after we switched to Windows10. Is that something that can be fixed under the current printing method or will we have to wait for native electron printing?

EliDeh commented 4 years ago

I can't reproduce this using Adobe Acrobat Reader DC v2019.012.20040.

jsubhi commented 4 years ago

Hm, we see it on two different machines, both running the same Adobe Acrobat Reader DC v2019.012.20040 on Windows 10 x64 1809. But if you can't reproduce it, you can't fix it either, of course. I guess we'll have to live with it.

EliDeh commented 4 years ago

Thats odd. Does the barcodescanner send an additional key-event, like 'tab'?

jsubhi commented 4 years ago

No, just "Enter". The effect is the same if I manually enter the barcode and hit "Enter" or klick the +Icon. After printing no app has the focus. Hitting Alt+TAB once brings focus back to Signaturendruck (normally this would move focus to the next app on the list).