This commit is contained in:
fofolee 2020-05-23 17:39:53 +08:00
parent 60a36408fb
commit f4282a80a7

View File

@ -144,7 +144,7 @@ $("#tasklist").on('mousedown', '.taskinfo', function (e) {
if (1 == e.which) { if (1 == e.which) {
kill($(this).attr('id'), false); kill($(this).attr('id'), false);
} else if (3 == e.which) { } else if (3 == e.which) {
kill($(this).attr('id'), $(this).children(".path").html().replace(/\\/g, '/')) kill($(this).attr('id'), $(this).children(".path").text().replace(/\\/g, '/'))
} }
}); });
@ -157,20 +157,20 @@ $("#tasklist").on('mousemove', '.taskinfo', function () {
}); });
Mousetrap.bind('ctrl+c', () => { Mousetrap.bind('ctrl+c', () => {
var path = $(".select").children(".path").html(); var path = $(".select").children(".path").text();
copy(path); copy(path);
utools.showNotification('已复制') utools.showNotification('已复制')
return false return false
}); });
Mousetrap.bind('ctrl+e', () => { Mousetrap.bind('ctrl+e', () => {
var path = $(".select").children(".path").html(); var path = $(".select").children(".path").text();
open(path); open(path);
return false return false
}); });
Mousetrap.bind('ctrl+r', () => { Mousetrap.bind('ctrl+r', () => {
kill($(".select").attr('id'), $(".select").children(".path").html().replace(/\\/g, '/')) kill($(".select").attr('id'), $(".select").children(".path").text().replace(/\\/g, '/'))
return false return false
}); });