<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Problems with key press interaction in Decision icon</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle18
        {mso-style-name:emailstyle18;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Well, I&#8217;m still not sure what you meant, but I came up
with something that works. I think the problem was trying to go to the next
Decision icon page directly when onKeyDown was fired by attaching that code to the
event response. It triggered multiple times and caused all of the decision
pages to be executed without pausing. So I changed the onKeyDown code to just
exit the interaction (each with a unique ID), then followed that with a script
icon that sent execution to the next Decision icon page. Since the interactions
have unique IDs (vs. the same ID for the parent Decision icon) it doesn&#8217;t
matter if the onKeyDown event fires multiple times, it can only exit the
interaction once.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Have a great weekend!<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> Friday, July 17, 2009 1:57 PM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problems with key press interaction in Decision
icon<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div id=idOWAReplyText70040>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>use a normal event response, but listen for rootIcon, onKeyDown.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
also had trouble when trying to handle anyIconID.onKeyDown. RootIcon has some
code to make it work - the other icons were problematic for some reason that I
can't recall, and led to the things you describe.</span><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>It
measn you can only have one listener for onKeyDown, so you might need some
if... then... stuff going on in the response.</span> <o:p></o:p></p>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk on
behalf of Paul Swanson<br>
<b>Sent:</b> Fri 17/07/2009 21:53<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problems with key press interaction in Decision
icon</span><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I don&#8217;t understand what you mean by don&#8217;t try and
handle it from individual icons. Should I not use an event response? Do I use a
script icon with if (rootIcon.onKeyDown) { displayPromt.nextPage(); } in a
framework entry pane?</span><o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk]
<b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> Friday, July 17, 2009 1:37 PM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problems with key press interaction in Decision
icon</span><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div id=idOWAReplyText91385>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>you should handle rootIcon.onKeyDown, don't try and handle it from
individual icons.</span><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk on
behalf of Paul Swanson<br>
<b>Sent:</b> Fri 17/07/2009 19:03<br>
<b>To:</b> xerte@lists.nottingham.ac.uk<br>
<b>Subject:</b> [Xerte] Problems with key press interaction in Decision icon</span><o:p></o:p></p>

</div>

<div>

<p><span style='font-family:"Calibri","sans-serif"'>I&#8217;m having problems
using</span> <span style='font-family:"Calibri","sans-serif"'>an</span> <span
style='font-family:"Calibri","sans-serif"'>onKeyDown event to move to the next
page of a Decision icon. It works on the first page, but on the second page,
when you press a key, the Decision icon goes wacko and</span> <span
style='font-family:"Calibri","sans-serif"'>zips instantly through the rest of
the pages and then seems to loop on the icons that follow</span> <span
style='font-family:"Calibri","sans-serif"'>the Decision icon.</span> <span
style='font-family:"Calibri","sans-serif"'>I haven&#8217;t even put onKeyDown
events yet on the Decision icon pages that zip through</span> <span
style='font-family:"Calibri","sans-serif"'>&#8211; those have timed events
(which I am attempting to change to</span> <span style='font-family:"Calibri","sans-serif"'>&#8220;press
any key to continue&#8221; onKeyDown events).</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Properties of my Decision
icon:</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>id:
displayPrompts</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>repeat:
all</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>branch:
sequence</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>pause:
1</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>erase:
0</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>eraseOnExit:
0</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>The keypress interaction is
NOT perpetual.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Properties of the event
response:</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>eventName:
onKeyDown</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>icon:
rootIcon</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>erase:
1</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>exit:
0</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Contents of script icon
attached to event response:</span><o:p></o:p></p>

<p style='margin-left:1.0in'><span style='font-family:"Calibri","sans-serif"'>displayPrompts.nextPage();</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Is there some way to set
KeyDown to FALSE or something? Any advise appreciated.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>_____________________________</span>
<o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:gray'>&nbsp;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:gray'>Paul Swanson</span><span
style='font-family:"Calibri","sans-serif"'><br>
</span><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:gray'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>Instructional Designer</span><span style='font-family:"Calibri","sans-serif"'><br>
</span><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:gray'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>Harland Financial Solutions</span><span style='font-family:"Calibri","sans-serif"'><br>
</span><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";
color:gray'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>Paul.Swanson@harlandfs.com</span><span style='font-family:"Calibri","sans-serif"'><br>
</span><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>_____________________________</span><span
style='font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

</body>

</html>