_layouts/default.html in j1-template-2021.0.16 vs _layouts/default.html in j1-template-2021.1.0

- old
+ new

@@ -313,11 +313,21 @@ trigger: '{{popovers_options.trigger}}' }); {% endif %} }); </script> - <!-- [INFO ] [j1.layout.default.html ] [ end page processing ] --> + {% comment %} Initialize Window History (back on <ESC>) + ------------------------------------------------------------------------------ {% endcomment %} + <!-- [INFO ] [j1.layout.default.html ] [ initialize window.history.back ] --> + <script> + // Redirect on KEY <ESC> + window.onkeyup = function (e) + { + if (e.keyCode == 27) window.history.back(); + } + </script> + <!-- [INFO ] [j1.layout.default.html ] [ end page processing ] --> </html> {% endcapture %}