|
|
|
@ -1350,14 +1350,26 @@ new Keyboard({
@@ -1350,14 +1350,26 @@ new Keyboard({
|
|
|
|
|
defaultEventType: 'keydown', |
|
|
|
|
events: { |
|
|
|
|
'ctrl+a': function(event) { |
|
|
|
|
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA") |
|
|
|
|
return; |
|
|
|
|
if (event.target.isContentEditable) |
|
|
|
|
return; |
|
|
|
|
torrentsTable.selectAll(); |
|
|
|
|
event.preventDefault(); |
|
|
|
|
}, |
|
|
|
|
'delete': function(event) { |
|
|
|
|
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA") |
|
|
|
|
return; |
|
|
|
|
if (event.target.isContentEditable) |
|
|
|
|
return; |
|
|
|
|
deleteFN(); |
|
|
|
|
event.preventDefault(); |
|
|
|
|
}, |
|
|
|
|
'shift+delete': (event) => { |
|
|
|
|
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA") |
|
|
|
|
return; |
|
|
|
|
if (event.target.isContentEditable) |
|
|
|
|
return; |
|
|
|
|
deleteFN(true); |
|
|
|
|
event.preventDefault(); |
|
|
|
|
} |
|
|
|
|