]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
Toolkit: remove textarea fix
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 26 May 2021 08:58:38 +0000 (10:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 May 2021 11:37:36 +0000 (13:37 +0200)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/Toolkit.js

index b38e5041ddf5bd6c857755a674804b7f955c70f7..30dffc22191a81d3d2f1864c52eea6ad8938756e 100644 (file)
@@ -223,20 +223,6 @@ Ext.define('Proxmox.UnderlayPool', {
     },
 });
 
-// 'Enter' in Textareas and aria multiline fields should not activate the
-// defaultbutton, fixed in extjs 6.0.2
-Ext.define('PVE.panel.Panel', {
-    override: 'Ext.panel.Panel',
-
-    fireDefaultButton: function(e) {
-       if (e.target.getAttribute('aria-multiline') === 'true' ||
-           e.target.tagName === "TEXTAREA") {
-           return true;
-       }
-       return this.callParent(arguments);
-    },
-});
-
 // if the order of the values are not the same in originalValue and value
 // extjs will not overwrite value, but marks the field dirty and thus
 // the reset button will be enabled (but clicking it changes nothing)