[BRLTTY] Xbrlapi
Willie Walker
William.Walker at Sun.COM
Tue Dec 12 09:47:26 EST 2006
As an alternative approach...
Would it be possible to add functionality to readKey to allow me to
return a boolean 'consumes' value to it? A value of True would be I'm
going to handle it, a value of False would mean send it on to whatever
else has an interest in it. With this, I wouldn't need to keep setting
and unsetting the key ranges I care about.
Will
On Mon, 2006-12-11 at 23:57 +0100, Samuel Thibault wrote:
> Willie Walker, le Mon 11 Dec 2006 17:48:19 -0500, a écrit :
> > > >Orca currently only has bindings for CMD_FWINLT, CMD_FWINRT, CMD_LNUP,
> > > >CMD_LNDN, CMD_TOP_LEFT, CMD_BOT_LEFT, and CMD_HOME, and it also listens
> > > >for any cursor routing key.
> > >
> > > I suggest you ignoreKeyRange() everything, acceptKeyRange() the routing key
> > > block, and acceptKeySet() a list containing the other keys.
> >
> > Thanks! I'm having trouble figuring out how to express "everything".
> > Would that be:
> >
> > everything=[0, 0x1FFFFFFFFFFFFFFF]
>
> Rather [0, KEY_FLAGS_MASK|KEY_TYPE_MASK|KEY_CODE_MASK]
>
> > routingKeyBlock=[KEY_CMD_ROUTE, KEY_CMD_ROUTE+<display width>]
>
> I'd rather say
>
> [KEY_CMD_ROUTE,KEY_CMD_ROUTE|KEY_CMD_ARG_MASK]
>
> > Where KEY_CMD_ROUTE=(KEY_TYPE_CMD | 0x20000) and
> > KEY_TYPE_CMD=0x0000000020000000?
>
> KEY_CMD_ROUTE is already defined in the brlapi module to (KEY_TYPE_CMD |
> 0x10000)
>
> > In addition, for each of the commands, do I express them using the
> > KEY_CMD_* constants, such as KEY_CMD_HOME,
>
> Yes.
>
> > which is defined to be (KEY_TYPE_CMD | 29)?
>
> Mmm, no, it's defined to
> KEY_SYM_HOME = (KEY_TYPE_SYM | 0x0000ff50)
> (again, in the brlapi module).
>
> > Also, acceptKeySet is not implemented in the Python bindings. Can I
> > call acceptKeyRange giving it ranges of length 1?
>
> For experimenting right now, yes. I'll implement it.
>
> > Finally, is the key range inclusive, or does it exclude the last value
> > in the range?
>
> It is inclusive.
>
> Samuel
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at mielke.cc
> For general information, go to: http://mielke.cc/mailman/listinfo/brltty
More information about the BRLTTY
mailing list