Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In halcyonCommon.js you have a function called KeyListener() which is called on document load. That function adds an event listener for keydown, and it appears to be handling escape and enter keydown events for your whole document:</p> <pre><code> case KeyCode.Enter: if (el.tagName == "INPUT") { switch (el.type) { case "checkbox" : case "password" : case "radio" : case "text" : { //Check for datebox and timebox, has controller --&gt; onblur before click OK if (el.Controller &amp;&amp; el.Controller.onblur) el.Controller.onblur({target : el}); return oThis.clickAction(oThis._DefaultButton, e); } break; case "file" ://ThamHNguyen, added 14-NOV-06 return oThis.clickAction(oThis._DefaultButton, e); break; default: return true; } } else if (el.tagName == "SELECT") { return oThis.clickAction(oThis._DefaultButton, e); } else if (el.tagName == "HTML" || el.tagName == "BODY" || el.tagName == "TD") { //"TD" : on IE only return oThis.clickAction(oThis._DefaultButton, e); } else if (el.tagName == "TEXTAREA" || el.tagName == "A" ) { return true; } else { return false; //Prevent default button of IE } </code></pre> <p>See the last else case? Removing that solves the problem, but it's possible that this will cause undesired behavior elsewhere in your program. If it does, you'll need to add a third possible occasion for returning true (and therefore allowing normal behavior) in this line:</p> <pre><code>} else if (el.tagName == "TEXTAREA" || el.tagName == "A" ) </code></pre> <p>For example:</p> <pre><code>} else if (el.tagName == "TEXTAREA" || el.tagName == "A" || el.tagName == "SPAN" ) </code></pre> <p>...though that may not be specific enough.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload