Scan, Pack and Ship > Screen Rendering > Default Focus
  
Default Focus
You can set the default focus when you open the screen. In the example, the default focus is set to the barcode scan field.
*************************************************************************
var barcodeScan = Ext.getCmp(\"barcodeScan\");
if (barcodeScan ){
barcodeScan.focus(true, true);
}
*************************************************************************