]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
better default focus selection
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 6 Apr 2018 11:11:16 +0000 (13:11 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Apr 2018 11:44:27 +0000 (13:44 +0200)
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>
window/Edit.js

index 8d5aa19a5382bcbd166f79bd14b20f596deaa7fb..9548e213cda1f0f54d35fb9e79b6c4b4601724a5 100644 (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,