better default focus selection

we do not want to focus on hidden/disabled fields,
because that focus gets lost and prevents some things
e.g. cancelling with ESC

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-04-06 13:11:16 +02:00 committed by Dietmar Maurer
parent 880df5d504
commit 5d3089cd94

View File

@ -34,7 +34,7 @@ Ext.define('Proxmox.window.Edit', {
defaultButton: 'submitbutton',
// finds the first form field
defaultFocus: 'field',
defaultFocus: 'field[disabled=false][hidden=false]',
showProgress: false,