diff --git a/www/form/app-form.less b/www/form/app-form.less index ff0fd8e17..afcc5159d 100644 --- a/www/form/app-form.less +++ b/www/form/app-form.less @@ -1556,3 +1556,15 @@ .charts_main(); } +@media print { + html, + body { + height: auto !important; + overflow: visible !important; + } + + .cp-form-creator-container { + max-height: none !important; + overflow-y: visible !important + } +} diff --git a/www/form/inner.js b/www/form/inner.js index d6409c885..64188988f 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -125,6 +125,14 @@ define([ return cancelBlock; }; + + window.addEventListener('keydown', function (e) { + if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'p') { + e.preventDefault(); + window.print(); + } + }); + var editTextOptions = function (opts, setCursorGetter, cb) { var evOnSave = Util.mkEvent();