Hello all,
I was wondering how i could propagate the keypress that triggered the execution of my plugin.
I want to bind some casual keys (like enter, up / down arrow) and run my plugin when each of them is pressed.
However the problem is that once i bind for these keys, pressing them does not get propagated to the application, the keypresses die with the execution of my plugin.
This may be expected behavior, but how can i let the keypress perform its default action? (e.g. change a line when enter is pressed).
Currently, i am emulating the keypress behavior but i know this must not be the right thing to do, for example in the case of an enter, while i insert a newline, the auto_indent doesn’t kick in so the cursor moves at column 0.
How can i “release” the keypress event and let it bubble / propagate?