Making the program inject characters into the listener
In LWW 4.3.6 I can enter a character into the listener, to have it processed as if entered from the keyboard, like this:
(editor::process-character #\X editor::*e-current-window*)
In LWW 6.1, I need to do it differently, because *e-current-window* has the wrong window.
What's the canonical way to do it, to work with all versions of Lispworks? Or at least to make it work with 6.1.
Note that this is different than simply displaying characters in the listener. I want the listener to act on the characters, exactly as if they came from the keyboard, not just display a readable representation of them. For example, a backspace is displayed as ^H to be
readable, but if the listener acted on it, it would delete the previous character from the display, instead of displaying ^H.