FM style update

This commit is contained in:
Serghey Rodin 2015-10-13 14:24:23 +03:00
commit a379e01e5a
2 changed files with 13 additions and 3 deletions

View file

@ -151,14 +151,16 @@
}
);
shortcut.add("Ctrl+Backspace", function(){
if($('form#vstobjects button.cancel')[0]){
// shortcut.add("Ctrl+Backspace", function(){
shortcut.add("Backspace", function(){
console.log("read");
if($('form#vstobjects .button.cancel')[0]){
location.href=$('form#vstobjects input.cancel').attr('onclick').replace("location.href='", "").replace("'","");
}
}, {
'type': 'keydown',
'propagate': false,
'disable_in_input': false,
'disable_in_input': true,
'target': document
}
);