]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
set default focus and default button for edit window
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 25 Apr 2017 04:17:22 +0000 (06:17 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 25 Apr 2017 04:17:22 +0000 (06:17 +0200)
commita7dcbdebb97bd45d82dc6ff888be9ebc4372840a
treed8a94175f166049c928d15dbd4bdc63bfe1648a7
parent452892dfba234cacef54fa73ca68edf95adbef25
set default focus and default button for edit window

this patch sets following defaults for the edit window:

defaultFocus: 'field'

sets the focus on the first field it finds in its child items,
works for most edit windows, so that the cursor stands in a
textfield, or on a checkbox

defaultButton: 'submitbutton'

so that when someone presses enter, we submit the form

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
window/Edit.js