Re: [g-a-devel]AccessibleKeystrokeListener
- From: Peter Korn <peter korn sun com>
- To: "Padraig O'Briain" <Padraig Obriain sun com>
- Cc: gnome-accessibility-devel gnome org, gnome-accessibility-devel bernard-hugueney org
- Subject: Re: [g-a-devel]AccessibleKeystrokeListener
- Date: Tue, 22 Jul 2003 13:46:32 -0700
Hi Padraig, Bernard,
Padraig O'Briain wrote:
>
> > Le Mardi 22 Juillet 2003 16:38, Padraig O'Briain a écrit :
> > > > Encore moi !
> > > > Sorry to bother you again :-(
> > > > Now I'm trying to log keystroke events.
> > > > I wanted to get hints from /at-spi/test/key-listener-test.c
> > > > but I have two problems :
> > > >
> > > > 1) I don't understand what it should do (it does nothing except
> > > > output bash-2.05b$
> > > > /var/UserSpace/Build/GnomeCVS/at-spi/test/key-listener-test
> > > > Command key registry: result succeeded
> > > > tab listener registry: failed
> > > > all key registry: succeeded
> > > > and wait )
> > > > I tried some keystrokes in accessible apps (and q & Q), but
> > > > nothing happens :-(
> > >
> > > Try typing def into gedit.
> > >
> > > Notice than the d disappears because key-listener-test consumes it.
> >
> > In fact, I'm used to killing at-spi-registryd or even rm -rf my
> > /tmp/orbit-username when things went bad, but this time it took a
> > restart of the X server :-(
> > Sorry I bothered you .
> >
> > Things work much better now, but I'm puzzled by the modmask argument
> > in SPI_registerAccessibleKeystrokeListener.
> > I want to listen to *any* keystroke.
>
> I am not sure whether AT-SPI was designed for that purpose. Perhaps Peter
> or Bill can comment.
With the current architecture in X, listening to keystrokes is expensive -
you should only listen for those you really need to get access to. An
alternate approach that would allow listening to (and potentially filtering)
all keystrokes at a low level would involve an X extension. This is being
worked on, but isn't yet available. Hence the interface that you are using
now.
Regards,
Peter Korn
Sun Accessibility team
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]