mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
parent
71f4a5667c
commit
61dbb211c0
@ -1350,14 +1350,26 @@ new Keyboard({
|
|||||||
defaultEventType: 'keydown',
|
defaultEventType: 'keydown',
|
||||||
events: {
|
events: {
|
||||||
'ctrl+a': function(event) {
|
'ctrl+a': function(event) {
|
||||||
|
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA")
|
||||||
|
return;
|
||||||
|
if (event.target.isContentEditable)
|
||||||
|
return;
|
||||||
torrentsTable.selectAll();
|
torrentsTable.selectAll();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
},
|
},
|
||||||
'delete': function(event) {
|
'delete': function(event) {
|
||||||
|
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA")
|
||||||
|
return;
|
||||||
|
if (event.target.isContentEditable)
|
||||||
|
return;
|
||||||
deleteFN();
|
deleteFN();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
},
|
},
|
||||||
'shift+delete': (event) => {
|
'shift+delete': (event) => {
|
||||||
|
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA")
|
||||||
|
return;
|
||||||
|
if (event.target.isContentEditable)
|
||||||
|
return;
|
||||||
deleteFN(true);
|
deleteFN(true);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user