[pve-devel] [PATCH pve-manager] SafeDestroy.js: allow to submit the form with Enter key

Dietmar Maurer dietmar at proxmox.com
Thu Mar 31 10:29:46 CEST 2016


> @@ -102,7 +108,12 @@ Ext.define('PVE.window.SafeDestroy', {
>  			fieldLabel: gettext('Please enter the {item.type} ID to confirm'),
>  		    },
>  		    hideTrigger: true,
> -		    allowBlank: false
> +		    allowBlank: false,
> +		    listeners: {
> +			afterrender: function(field) {
> +			    field.focus(10);
> +			}
> +		    }

Can we move this code to the ViewController instead?




More information about the pve-devel mailing list