# HG changeset patch # User Nicholas Jillings # Date 1501593585 -3600 # Node ID 03a66e54cdff24a98d0085c11a0a4c59758e1437 # Parent fc41c3d909b7288a61bc8bae7369c96d50f346b8 Fix for #161 with popup focus. diff -r fc41c3d909b7 -r 03a66e54cdff js/core.js --- a/js/core.js Tue Aug 01 14:17:02 2017 +0100 +++ b/js/core.js Tue Aug 01 14:19:45 2017 +0100 @@ -555,7 +555,7 @@ this.store = null; var lastNodeStart; $(window).keypress(function (e) { - if (e.keyCode == 13 && popup.popup.style.visibility == 'visible') { + if (e.keyCode == 13 && popup.popup.style.visibility == 'visible' && interfaceContext.lightbox.isVisible() === false) { console.log(e); popup.buttonProceed.onclick(); e.preventDefault(); @@ -2421,6 +2421,9 @@ }, resize: function (event) { this.root.style.left = (window.innerWidth / 2) - 250 + 'px'; + }, + isVisible: function () { + return this.root.style.visibility == "visible"; } };