Dear Zou,

sorry I forgot: you can use French input method (or Italian) to reproduce the misbehaviour. Actually it is really a known bug of Qt/ Mac (both Carbon and Cocoa) which has been fixed in the upcoming 4.7.0. As an aside I suggest to use Qt/Carbon 4.7.0 rc1 on the Mac. The Cocoa version has still a bug with Ctrl+Tab not recognized and versions before that have the bug with input methods. I hope they will address the Cocoa version bug soon (I have filed it some times ago).

Best
max

PS: I committed also a fix for the locate bug.


On 13 sept. 10, at 07:38, Zou Hu wrote:

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) {
  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
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to