It works well in my computer. But I don't know how to type `+a+b with input 
methods. CJK input methods typically send characters other than a-z directly to 
the editor. Which input method did you use?


On 2010-09-12 21:27:02,Gubinelli Massimiliano wrote:
Thanks for the details.


I think that a better implementation of inputMethodEvent would be the following:




void
QTMWidget::inputMethodEvent (QInputMethodEvent*event) {
 QStringconst & 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
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to