<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">if you could be more precise as to what you want to achieve in the end,<br>
we might suggest a way to achieve it</blockquote><div><br></div><div>I'm developing an application in QT framework. In this application I have a textedit widget (QTextEdit). I was expecting that by default pressing a routing key moves the text cursor to the specific character under the routing key in the textedit.</div><div>But that is not happening, So I'm trying to somehow grab the routing key and move the text cursor to the relevant position.</div><div><br></div><div>Currently I'm using the eventFilter() function of QObject and I've discovered that by pressing a routing key, a QPaintEvent received by qt textedit object. But this event gives me a graphical region and, by this region information, I can't route the text cursor to the specific character determined by the routing key.</div><div><br></div><div>Is it possible to use Orca scripting capabilities to achieve this?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 29, 2019 at 1:47 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 13:30:08 +0430, a ecrit:<br>
> But the point is that I don't want to use brlapi in my application,<br>
<br>
Ah<br>
<br>
> I'm trying to grab the system event that a routing key triggers.<br>
<br>
There is no system equivalent to a routing key.<br>
<br>
The routing keys are tighly coupled to what is being displayed on the<br>
braille output, which is not managed by the system, but by orca.<br>
<br>
What would thus happen is that orca catches the event through brlapi,<br>
and e.g. call atspi_text_set_caret_offset, which will be directly fed to<br>
the application toolkit's widget.<br>
<br>
If you could be more precise as to what you want to achieve in the end,<br>
we might suggest a way to achieve it (<a href="http://xyproblem.info/" rel="noreferrer" target="_blank">http://xyproblem.info/</a>).<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>