]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
Add focusable pseudo class to edit windows defaultFocus
authorFabian Möller <fabianm88@gmail.com>
Wed, 8 Jul 2020 08:42:42 +0000 (10:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Jul 2020 12:10:17 +0000 (14:10 +0200)
commit4f3b2a9398059181c6482447b42b1f5330be4563
treebd72fc77c6fd6b167f1d7a518fde1758717dfdba
parented34cd7a9523629409cc3c4811f0828cb1a1fc77
Add focusable pseudo class to edit windows defaultFocus

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