I was having the exact same issue with detecting enter, backspace and various other non alphanumeric keys with EXEOUTPUT yesterday, it was acting very strange - in the end I managed to find a solution that seems to work okay, if a bit tempramental.
Was the internal key manager in exeoutput revised in 1.4, or is that something on your todo list for a future update?
I need to detect when users press Enter button (of the keyboard).
But I can’t, may be there is some limitation.
The script detect if the user press Ctrl and Spacebar buttons.
The problem is when the user press Enter button. Nothing is happening.
It’s working perfect in any browser (IE, FF, Chr), but not in ebook-exe file.
I’m using this javascript:
<script language="javascript" type="text/javascript">
document.onkeyup = checkKeycode;
function checkKeycode(e)
{
//13-enter; 17-ctrl; 32-spacebar
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
if(keycode == 13) //Enter button
{
alert("Enter button was pressed.");
}
if(keycode == 17) //Ctrl button
{
alert("Ctrl button was pressed.");
}
if(keycode == 32) //Spacebar button
{
alert("Spacebar button was pressed.");
}
}
</script>
I attach all 2 files in rar archive, so you can test it easly:
index.html (source file, containing the javascript script)
project.hep (all settings are default for HTML Executeable 3.6.5)