[BRLTTY] Long press key bindings.
Dave Mielke
dave at mielke.cc
Sat Nov 2 12:44:59 EDT 2013
The latest development code now supports long press key bindings. These may
slowly start appearing within some of our key tables, especially since it's a
convenient way to add more functionality to a braille device which only has a
few keys.
For those of you who like to do your own key table editing, append a colon and
a second command to any bind statement. For example:
bind Thumb1 TOP:TOP_LEFT
bind RoutingKey ROUTE:DESCCHAR
With these two statements you now have four functions. Tapping Thumb1 goes to
the top line while holding it goes to the top-left corner. Tapping a routing
key routes the cursor while holding it describes the character.
You can actually now define eight functions with only two keys. Firstly, you
can press each of the keys separately as well as both of them together in
either order. Secondly, each of these four possibilities can be a short or a
long press. This is how you'd define it:
bind key1 command1:command2
bind key2 command3+command4
bind key1+!key2 command5+command6
bind key2+!key1 command7+command8
If autorepeat is enabled then it's the long press function which is repeated.
--
Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
EMail: dave at mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/
More information about the BRLTTY
mailing list