[BRLTTY] emulated keyboard and api clients?
Samuel Thibault
samuel.thibault at ens-lyon.org
Fri Apr 28 18:57:48 EDT 2006
Mario Lang, le Sat 29 Apr 2006 00:48:46 +0200, a écrit :
> I have a suspicion that there is something fishy with emulated keyboards while
> api clients grab the display. Can anyone confirm that uinput events
> are still generated if a API client has control over the display, or
> is it perhaps possible that the PASSAT2 commands are swallowed
> by api clients?
For now, they are indeed swallowed by api clients.
> If so, I think this is a problem. We should probably
> special-case PASSAT2 to still end up in the kernel as usual.
By default yes, here is a patch.
Samuel
-------------- next part --------------
Index: Programs/api_server.c
===================================================================
--- Programs/api_server.c (r?vision 2253)
+++ Programs/api_server.c (copie de travail)
@@ -2065,6 +2065,7 @@
if (removeRange(BRL_CMD_SWITCHVT_PREV,BRL_CMD_SWITCHVT_NEXT,&c->unmaskedKeys)==-1) return -1;
if (removeRange(BRL_CMD_RESTARTBRL,BRL_CMD_RESTARTSPEECH,&c->unmaskedKeys)==-1) return -1;
if (removeRange(BRL_BLK_SWITCHVT,BRL_BLK_SWITCHVT|BRL_MSK_ARG,&c->unmaskedKeys)==-1) return -1;
+ if (removeRange(BRL_BLK_PASSAT2,BRL_BLK_PASSAT2|BRL_MSK_ARG,&c->unmaskedKeys)==-1) return -1;
return 0;
}
More information about the BRLTTY
mailing list