Filter Keystrokes
Added by lm at about 6 years ago
I have a Wt::WLineEdit
in my code, and when the user presses 'a', I would like the website to respond as though 'b' was pressed. That is, I would like "b" to be added to the text rather than "a". Is this possible using WT? I see keyWentUp
, keyWentDown
, and keyPressed
, but those all trigger before the text has made it to the Wt::WLineEdit
, and there's no way to modify the event in flight or anything I think.
Replies (1)
RE: Filter Keystrokes - Added by lm at about 6 years ago
https://redmine.emweb.be/boards/2/topics/14765 mentions preventDefaultAction
and preventPropagation
which should take care of my needs.