mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
wip
This commit is contained in:
parent
bb94d87ec4
commit
f7cdf0ec2f
@ -1564,4 +1564,4 @@
|
||||
max-height: none !important;
|
||||
overflow-y: visible !important
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -128,23 +128,16 @@ define([
|
||||
return cancelBlock;
|
||||
};
|
||||
|
||||
var nativePrint = window.print.bind(window);
|
||||
var nativePrint = window.print;
|
||||
|
||||
var printFullContent = function () {
|
||||
|
||||
var restore = function () {
|
||||
window.onafterprint = null;
|
||||
};
|
||||
|
||||
window.onafterprint = restore;
|
||||
setTimeout(restore, 60000);
|
||||
|
||||
setTimeout(function () { nativePrint(); }, 50);
|
||||
};
|
||||
|
||||
window.print = printFullContent;
|
||||
|
||||
window.addEventListener('keydown', function (e) {
|
||||
console.log("app", APP)
|
||||
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'p') {
|
||||
e.preventDefault();
|
||||
printFullContent();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user