From a147a8cbb71de92c556bdefc8c8be970090037bd Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 4 Jan 2018 11:28:58 +0100 Subject: [PATCH] explicit set button focus respecting the 'dangerous' option port commit 4dc6bd326a829d5bf708c4a33722d5a8c6304f9c from pve-manager --- button/Button.js | 1 + 1 file changed, 1 insertion(+) diff --git a/button/Button.js b/button/Button.js index e02ea8d..0d65d57 100644 --- a/button/Button.js +++ b/button/Button.js @@ -48,6 +48,7 @@ Ext.define('Proxmox.button.Button', { icon: me.dangerous ? Ext.Msg.WARNING : Ext.Msg.QUESTION, msg: msg, buttons: Ext.Msg.YESNO, + defaultFocus: me.dangerous ? 'no' : 'yes', callback: function(btn) { if (btn !== 'yes') { return;