<div>Hi Julian,</div>
<div>&nbsp;</div>
<div>Well, there is no urgency. It seems to work for TextEntry interactions, and in the model you use setFocus in exactly the same way. Enough other things to figure out to keep me busy, and this is just a minor problem.</div>

<div>Is there btw something I should do (or not do)&nbsp;to make the yellow boxes appear when the user presses the Tab? I take it they should work for custom buttons as well?</div>
<div>&nbsp;</div>
<div>Elly<br><br></div>
<div class="gmail_quote">On Mon, Oct 27, 2008 at 10:11 PM, Julian Tenney <span dir="ltr">&lt;<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr">
<div dir="ltr"><font face="Arial" color="#000000" size="2">I can look into it.&nbsp;I wonder whether this is the right way to do things - the selection is usually set by the user, and I&#39;d expect the user in Xerte to move the focus around using the tab key.</font></div>
</div>
<div dir="ltr"><br>
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Elly Langewis<br><b>Sent:</b> Mon 27/10/2008 16:54 
<div>
<div></div>
<div class="Wj3C7c"><br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] default button<br></div></div></font><br></div>
<div>
<div></div>
<div class="Wj3C7c">
<div>
<div>Ok now I do not understand it anymore.</div>
<div>&nbsp;</div>
<div>1. For a TextEntry I&nbsp;can only set the focus in a script icon that is at the same level as the TextEntry (hanging off the interaction icon). When I don&#39;t set the focus, the user has to click at the TextEntry box first. When I do set the focus, the user can type the answer right away. When I put the script icon on any other place, this does not work.</div>

<div>If I track the focus with selection.getFocus() it is undefined, before and after I set the focus. But it works.</div>
<div>&nbsp;</div>
<div>2. If I try to do the same for a button response, the focus is not changed. (no focus, or if another button had the focus, it still has)</div>
<div>&nbsp;</div>
<div>3. The perpetual menu button has the focus, even if there is an interaction with a number of other buttons (the menu intself), and I press one of these (for paragraph 1). After that, the menu button still has the focus.</div>

<div>&nbsp;</div>
<div>Can anybody shed a light on this? It feels like I am doing several things wrong, but how should I do it then?</div>
<div>&nbsp;</div>
<div>Thanks in advance,</div>
<div>&nbsp;</div>
<div>Elly<br><br></div>
<div class="gmail_quote">On Mon, Oct 27, 2008 at 12:42 PM, Elly Langewis <span dir="ltr">&lt;<a href="mailto:e.a.langewis@gmail.com" target="_blank">e.a.langewis@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,</div>
<div>&nbsp;</div>
<div>I got it to work with the rs property without quotes, for a text response. I&nbsp;do not succeed to set the focus to another perpetual button. Strange.</div>
<div>&nbsp;</div><font color="#888888">
<div>Elly<br><br></div></font>
<div>
<div></div>
<div>
<div class="gmail_quote">On Mon, Oct 27, 2008 at 12:22 PM, Elly Langewis <span dir="ltr">&lt;<a href="mailto:e.a.langewis@gmail.com" target="_blank">e.a.langewis@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi Julian,</div>
<div>&nbsp;</div>
<div>Whatever I type as myButtonID - ID, rs, name, or &#39;_level0.engine.IFC.FW_ENT.Int_MC7.but9&#39; - the focus does not change (debug(Selection.getFocus()). Any ideas what I&nbsp;could be doing wrong? As the get does work, I think the set should work too.</div>

<div>&nbsp;</div><font color="#888888">
<div>Elly</div></font>
<div>
<div></div>
<div>
<div>&nbsp;</div>
<div><br><br><br>&nbsp;</div>
<div class="gmail_quote">On Fri, Oct 24, 2008 at 4:53 PM, Julian Tenney <span dir="ltr">&lt;<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-GB" vlink="purple">
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Selection.setFocus(myButtonID) I think.</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span>&nbsp;</p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">You can listen for rootIcon.onKeyDown to listen for keypresses, so you can have an event responses for y and n and the yes / no buttons as well. Being able to define the action key would be useful – I&#39;ll look at that next week.</span></p>

<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span>&nbsp;</p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span>&nbsp;</p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span>&nbsp;</p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p style="MARGIN-LEFT: 36pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Elly Langewis<br>
<b>Sent:</b> Friday, October 24, 2008 4:48 PM<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] default button</span></p></div>
<div>
<div></div>
<div>
<p style="MARGIN-LEFT: 36pt">&nbsp;</p>
<div>
<p style="MARGIN-LEFT: 36pt">Thanks Julian, that explains. </p></div>
<div>
<p style="MARGIN-LEFT: 36pt">Is it possible to set the focus to a certain button? And is it possible to make a button react to a certain key pressed, like when I have two buttons, yes and no, and want the user to be able to press Y&nbsp;or N (besides making a third response to catch that)?</p>
</div>
<div>
<p style="MARGIN-LEFT: 36pt">&nbsp;</p></div>
<div>
<p style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm">Elly</p></div>
<div>
<p style="MARGIN-LEFT: 36pt">On Fri, Oct 24, 2008 at 5:03 PM, Julian Tenney &lt;<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>&gt; wrote:</p>
<div>
<div>
<p style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">It&#39;s built in accessibility. It will only respond to keys whilst it has the focus. When you click elsewhere, the focus moves away from the button and it doesn&#39;t respond to keypresses. All the interaction responses can be controlled with the keyboard.</span></p>

<p style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span>&nbsp;</p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p style="MARGIN-LEFT: 72pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Elly Langewis<br>
<b>Sent:</b> Friday, October 24, 2008 3:41 PM<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] default button</span></p></div>
<div>
<div>
<p style="MARGIN-LEFT: 72pt">&nbsp;</p>
<div>
<p style="MARGIN-LEFT: 72pt">Hi,</p></div>
<div>
<p style="MARGIN-LEFT: 72pt">&nbsp;</p></div>
<div>
<p style="MARGIN-LEFT: 72pt">I&#39;ve got a perpetual button (&#39;Menu&#39;) in my Entry Frame. For some reason, when I have used the button (just once), this button will also get pressed when I hit the space bar. As I have not found yet how to let a button react to key responses I was quite surprised...</p>
</div>
<div>
<p style="MARGIN-LEFT: 72pt">Does anyone know what caused this behaviour? It disappeats after using a text entry response, but after hitting the button again it reacts to the space bar again.</p></div>
<div>
<p style="MARGIN-LEFT: 72pt">&nbsp;</p></div>
<div>
<p style="MARGIN-LEFT: 72pt">TIA</p></div>
<div>
<p style="MARGIN-LEFT: 72pt">&nbsp;</p></div>
<div>
<p style="MARGIN-LEFT: 72pt">Elly</p></div>
<div>
<p style="MARGIN-LEFT: 72pt">&nbsp;</p></div></div></div></div></div>
<p style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a></p></div>
<p style="MARGIN-LEFT: 36pt"><br><br clear="all"><br>-- <br>Elly Langewis<br>courseware developer<br>Department of Biology<br>Utrecht University</p></div></div></div></div><br>_______________________________________________<br>
Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Elly Langewis<br>courseware developer<br>Department of Biology<br>Utrecht University<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Elly Langewis<br>
courseware developer<br>Department of Biology<br>Utrecht University<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Elly Langewis<br>courseware developer<br>Department of Biology<br>Utrecht University<br>
</div></div></div></div><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Elly Langewis<br>courseware developer<br>Department of Biology<br>Utrecht University<br>