[pve-devel] applied: Re: [PATCH widget-toolkit] Add focusable pseudo class to edit windows defaultFocus

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jul 9 14:12:10 CEST 2020


On 08.07.20 10:42, Fabian Möller wrote:
> Restricting the defaultFocus of the edit windows to only focusable fields
> ensures that windows like "PVE -> Virtual Machine -> Manage HA", which
> has a first field of xtype "displayfield", receive focus upon opening.
> 
> This allows those windows to be closed with the ESC key, which only
> works when an element inside has focus.
> 
> In newer versions of ExtJS (>= 6.2.0) this filter could be reduced to
> "field:canfocus" or maybe even ":canfocus".
> ---
>  src/window/Edit.js | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>

applied, thanks!






More information about the pve-devel mailing list