Merge pull request #66 from s72785/patch-9

adding focus
This commit is contained in:
rys ostrovid 2015-07-21 19:00:09 +02:00
commit 79e4a5af73

View file

@ -17,6 +17,10 @@ function hideBarcode() {
function barcodeKeyPress(event) { function barcodeKeyPress(event) {
var key = String.fromCharCode(event.charCode) var key = String.fromCharCode(event.charCode)
var input = document.getElementById('crement')
if ( input ) {
input.focus()
}
var focused = document.activeElement var focused = document.activeElement
if (! focused || focused == document.body) { if (! focused || focused == document.body) {
focused = null focused = null