[BRLTTY] Mapping a braille display input character to a computer-keyboard/browser character.
Samuel Thibault
samuel.thibault at ens-lyon.org
Sun Sep 29 19:12:33 EDT 2013
Hello,
Siju Samuel, le Thu 26 Sep 2013 12:06:09 -0500, a écrit :
> Do there have any option to press simultaneously.
No, I haven't implemented that. I have however attached a patch which
I use to add a few more buttons, notably a "€" button which presses
DOT1+DOT5+DOT7+DOT8. You will probably understand how that works, and
add yourself other buttons.
Samuel
-------------- next part --------------
Index: Drivers/Braille/XWindow/braille.c
===================================================================
--- Drivers/Braille/XWindow/braille.c (révision 7837)
+++ Drivers/Braille/XWindow/braille.c (copie de travail)
@@ -481,12 +481,19 @@
{ "ctrl-c", BRL_FLG_CHAR_CONTROL | BRL_BLK_PASSCHAR | 'c', 0, 4, 3 },
{ "a", BRL_BLK_PASSCHAR | 'a', 0, 5, 3 },
{ "A", BRL_BLK_PASSCHAR | 'A', 0, 6, 3 },
- { "Alt-F1", BRL_FLG_CHAR_META | BRL_KEY_FUNCTION | BRL_BLK_PASSKEY , 0, 7, 3 },
+ { "€", BRL_BLK_PASSDOTS | BRL_DOT1|BRL_DOT5|BRL_DOT7|BRL_DOT8 , 0, 7, 3 },
+ { "Alt-F1", BRL_FLG_CHAR_META | BRL_KEY_FUNCTION | BRL_BLK_PASSKEY , 0, 8, 3 },
+ { "Reset", BRL_CMD_RESTARTBRL, 0, 9, 3 },
+ { "S-Tab", BRL_FLG_CHAR_SHIFT | (BRL_BLK_PASSKEY + BRL_KEY_TAB), 0, 10, 3 },
+ { "CA-F1", BRL_FLG_CHAR_CONTROL | BRL_FLG_CHAR_META | BRL_KEY_FUNCTION | BRL_BLK_PASSKEY , 0, 11, 3 },
+ { "@", BRL_BLK_PASSCHAR | '@', 0, 12, 3 },
{ "Frez", BRL_CMD_FREEZE, 0, 6, 0 },
{ "Help", BRL_CMD_HELP, 0, 7, 0 },
{ "Pref", BRL_CMD_PREFMENU, 0, 6, 1 },
{ "PL", BRL_CMD_PREFLOAD, 0, 6, 2 },
{ "PS", BRL_CMD_PREFSAVE, 0, 7, 2 },
+ { "OFF", BRL_CMD_OFFLINE, 0, 8, 0 },
+ { "NOP", BRL_CMD_NOOP, 0, 9, 0 },
{ NULL, 0, 0, 0, 0},
};
@@ -522,6 +529,8 @@
//{ "D5", EOF, 1, 5, 4 },
//{ "B4", EOF, 1, 3, 2 },
+ { "Prefs", BRL_CMD_PREFMENU, 1, 8, 0 },
+
//{ "B1", EOF, 1, 0, 2 },
//{ "C2", EOF, 1, 1, 3 },
//{ "C4", EOF, 1, 3, 3 },
More information about the BRLTTY
mailing list