Fixes: U4-4581 Hotkey - Click on disabled element

This commit is contained in:
perploug
2014-04-02 11:51:56 +02:00
parent c8877d0a2c
commit 174aa9f4ad

View File

@@ -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();