I'm using a tktext element with tcltk package in R. I would like to achieve that when you press the Tab Key a custom function gets executed but no actual tab space added to text.
Using tkbind(tkTextField, "<Tab>", function(x) {tabFunction(tkTextField)})
I can get the custom function executed but the "\t" is still inserted in the text.
With tkbind(feldInp, "<Tab>", "break")
the Tab is omitted but no function is executed.
How can I combine both?