<div dir="ltr"><div>After adding processRoutingKey listener to orca script for my app, there is no problem and routing keys works fine.</div><div><br></div><div>Thanks.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 29, 2019 at 3:42 PM Samuel Thibault <<a href="mailto:samuel.thibault@ens-lyon.org">samuel.thibault@ens-lyon.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">payman shaykhmehdi, le jeu. 29 août 2019 15:01:52 +0430, a ecrit:<br>
> I was expecting that by default pressing a routing key moves the<br>
> text cursor to the specific character under the routing key in the<br>
> textedit.<br>
> But that is not happening,<br>
<br>
Ok, so this should be fixed where it belongs :)<br>
<br>
The at-spi interface to set the caret position is all you should have to<br>
be implementing in the toolkit.<br>
<br>
> Is it possible to use Orca scripting capabilities to achieve this?<br>
<br>
Yes, it's the processRoutingKey handler in the orca scripts. See<br>
the default script default.py, whose processRoutingKey calls<br>
braille.processRoutingKey(), implemented in orca/braille.py, which calls<br>
Line.processRoutingKey(), which calls the underlying implementation<br>
depending on the type of region, here that will probably be Text, and<br>
Text.processRoutingKey() will call setCaretOffset, which eventually<br>
calls atspi_text_set_caret_offset().<br>
<br>
Samuel<br>
_______________________________________________<br>
This message was sent via the BRLTTY mailing list.<br>
To post a message, send an e-mail to: BRLTTY@brltty.app<br>
For general information, go to: <a href="http://brltty.app/mailman/listinfo/brltty" rel="noreferrer" target="_blank">http://brltty.app/mailman/listinfo/brltty</a></blockquote></div>