[BRLTTY] acceptKeySet

Samuel Thibault samuel.thibault at ens-lyon.org
Thu Dec 14 19:49:01 EST 2006


Scott Haeger, le Thu 14 Dec 2006 15:11:45 -0500, a écrit :
> Is the python binding for acceptKeySet() working properly?  The 
> following code snippet does not work as expected:
> 
> b.ignoreKeyRange([0, brlapi.KEY_MAX])
> b.acceptKeySet([brlapi.KEY_CMD_ROUTE])

As Dave raised privately, the problem with KeySet is that it will only
recognize KEY_CMD_ROUTE without any flags and a 0 argument, i.e. only
ROUTE to 0. For getting all routing values, you need a range:

b.acceptKeyRange([brlapi.KEY_CMD_ROUTE, brlapi.KEY_CMD_ROUTE|brlapi.KEY_CMD_ARG_MASK])

This works for me.

Samuel


More information about the BRLTTY mailing list