From 174aa9f4ad771ddf3e624c032096a21a9f261c8d Mon Sep 17 00:00:00 2001 From: perploug Date: Wed, 2 Apr 2014 11:51:56 +0200 Subject: [PATCH] Fixes: U4-4581 Hotkey - Click on disabled element --- .../src/common/directives/utill/hotkey.directive.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/utill/hotkey.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/utill/hotkey.directive.js index 39a565b7ab..2ed1c87220 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/utill/hotkey.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/utill/hotkey.directive.js @@ -16,7 +16,8 @@ angular.module("umbraco.directives") keyboardService.bind(keyCombo, function() { var element = $(el); - if(element.is("a,button,input[type='button'],input[type='submit']")){ + + if(element.is("a,button,input[type='button'],input[type='submit']") && !element.is(':disabled') ){ element.click(); }else{ element.focus();