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',
|
||||
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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user