Fixes: U4-4581 Hotkey - Click on disabled element
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user