[BRLTTY] Re: Hopefully last brlapi change
Willie Walker
William.Walker at Sun.COM
Sun Feb 11 11:15:18 EST 2007
Thanks for the fast reply. Do I need to put another mask in there
(brlapi.KEY_CMD_ARG_MASK), or will it work without the mask?
keySet = [brlapi.KEY_TYPE_CMD \
| brlapi.KEY_CMD_ROUTE \
| brlapi.KEY_CMD_ARG_MASK]
Will
Samuel Thibault wrote:
> Willie Walker, le Sun 11 Feb 2007 10:52:53 -0500, a écrit :
>
>> Thanks for the heads up. I'm finally to the point where I can do this.
>> From your snippet below, co keySet = [brlapi.KEY_TYPE_CMD \
>> | brlapi.KEY_CMD_ROUTE \
>> | brlapi.KEY_CMD_ARG_MASK]
>>
>> mmands look easy to handle.
>>
>> How do I handle cursor routing keys?
>>
>
> Just the same (since cursor routing _is_ a command which just happens to
> have an argument):
>
> b.acceptKeys(brlapi.rangeType_command, [brlapi.KEY_TYPE_CMD|brlapi.KEY_CMD_ROUTE])
> key = b.readKey()
> k = b.expandKeyCode(key)
>
> and then you get k["type"] == brlapi.KEY_TYPE_CMD, k["command"] ==
> brlapi.KEY_CMD_ROUTE, k["argument"] == number
>
> Samuel
>
More information about the BRLTTY
mailing list