]> git.proxmox.com Git - pve-manager.git/commit
explicit set button focus respecting the 'dangerous' option
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jun 2017 13:40:36 +0000 (15:40 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 12 Jun 2017 08:24:29 +0000 (10:24 +0200)
commit8348c25c4c743e91414f56bf3fb6001d58ede20d
tree10c35ad2874e649da3fbc91824ac09d2a9fb3a66
parent458686553a73498641f3960ef094e56097a13fce
explicit set button focus respecting the 'dangerous' option

The line:
 > Ext.MessageBox.defaultButton = me.dangerous ? 2 : 1;
just set the button which should get triggered on an keyboard "Enter"
if no button is focused currently.

But often the 'Yes' buttons is focused so an enter press would
trigger it, even on a as 'dangerous' marked option.

Fix this, as else a to fast "Enter" press can cause more problems
than needed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/button/Button.js