form submit

{ view: ‘form’,id:‘myform’,
data: [
{ type: ‘text’, name: ‘edtUPC’, label: ‘UPC’, value: ‘’, position: ‘label-left’,inputWidth: ‘200’, labelWidth: 100, align: ‘left’, labelAlign: ‘center’, id: ‘edtUPC’},
{ type: ‘form_button’, name: ‘btnSearch’, value: ‘Search’, align: ‘left’, width: 150, id: ‘btnSearch’, sameLine: true },
{ type: ‘label’, label: ‘Nome do produto procurado’, align: ‘center’, popup: ‘’, click: ‘’, id: ‘productname’}
], height: 100

How to detect when ENTER key (using bluethooth keyboard) is hit in the field ‘edtUPC’ ?

You can use

dhx.extend($$("myform"), dhx.KeyEvents); $$("myform").attachEvent("onKeyPress", function(code, ctrl, shift, ev){ if (code == 13) do_something(); });