Thanks for the details.
I think that a better implementation of inputMethodEvent would be the following:
void
QTMWidget::inputMethodEvent (QInputMethodEvent* event) {
QString const & commit_string = event->commitString();
if (!commit_string.isEmpty()) {
int key = 0;
for (int i = 0; i < commit_string.size(); ++i) {
QKeyEvent ev(QEvent::KeyPress, key, Qt::NoModifier, commit_string[i]);
keyPressEvent(&ev);
}
}
event->accept();
}
Could you be so nice to test if it is OK for you?
Actually I have some problems on my system with inputMethod. If I type `+a+b then I obtain àab and not àb as I expect. In this case the inputMethod handler is activated by the first dead key but apparently spourious keypresses are generated AFTER the inputMethodEvent has been handled and it seems to me a bug with QT (which I cannot reproduce on Linux). If you have a Mac, could you tell me what is the output of the above sequence after you apply your patch to the current TeXmacs?
Best
Massimiiano