Prevents other applications from listening for captured events
Yusuf007R opened this issue · 4 comments
Yusuf007R commented
Is there a way to achieve this?
SnosMe commented
You can't prevent key presses because events are delivered asynchronously to js, at the point where your code runs it is too late to cancel them.
Yusuf007R commented
I see that makes sense thanks you :D
valueerrorx commented
so libuiokook should look out for some sort of "blockfile" where we could put some keycodes to block :-)
SnosMe commented
@valueerrorx If you know which keys to prevent in advance and don't need to check any conditions, then you can:
Pass array of keycodes from js side to C.
Line 180 in 63745a5
Then check and prevent original non-copied event here.
Lines 11 to 18 in 63745a5