Closed Yusuf007R closed 1 year ago
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.
I see that makes sense thanks you :D
so libuiokook should look out for some sort of "blockfile" where we could put some keycodes to block :-)
@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.
Then check and prevent original non-copied event here.
Is there a way to achieve this?