<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Maybe a global func that holds the tf id of the last tf with focus?<br><br>&lt;pseudo&gt;<br>if object with focus=TF {<br>last_active = TF ID<br>}<br>&lt;/pseudo&gt;<br><br><br>&gt; Date: Fri, 8 Jan 2010 15:27:12 +0000<br>&gt; From: Julian.Tenney@nottingham.ac.uk<br>&gt; To: xerte@lists.nottingham.ac.uk<br>&gt; Subject: [Xerte] Inserting Special Characters<br>&gt; <br>&gt; I want to have anumber of buttons insert special characters into a<br>&gt; textfield. How can I get the textfield that is currently selected when I<br>&gt; click a button?<br>&gt; <br>&gt; If I debug (Selection.getFocus()) after clicking the button, I get - of<br>&gt; course - the button, as I just selected it by clicking it. How can I<br>&gt; know the textField that has / did have the caret in it, and the position<br>&gt; of the caret?<br>&gt; <br>&gt; Previously I've done this by having the textfield update some variables<br>&gt; onChange, but this isn't an option in this case.<br>&gt; <br>&gt; J<br>&gt; _______________________________________________<br>&gt; Xerte mailing list<br>&gt; Xerte@lists.nottingham.ac.uk<br>&gt; http://lists.nottingham.ac.uk/mailman/listinfo/xerte<br>                                               <br /><hr />Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/196390706/direct/01/' target='_new'>Sign up now.</a></body>
</html>