Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54579

Input method doesn't handle focus out/ focus in correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.6.1, 5.9.6
    • None
    • Mac OS X 10.11.4
      Qt 5.6.1
    • macOS

    Description

      On my Macintosh, input method doesn't do the right thing if I start typing in one window using an input method, activate another window, then go back to the original window. I have attached three screen shots showing the problem. They show two windows containing QPlainTextEdit widgets. Here is the description:
      1. Select an input method. I used Japanese Hiragana.
      2. Activate one of the windows and type "mit". The result is "みt". This is shown in the screen capture called "Step1_mit.png".
      3. First bug: Click in the other window, then back in the first. The characters from the first window are now inserted in the second window. Shown in screen capture "Step2_focusInandOut.png"
      4. Second bug: type "s". Now the window contains just "s" in the input method string. Shown in screen capture "Step3_s.png".

      It appears that the first window loses its Input Method context at step 3. I would expect that the "s" typed in step 3 would be added to the existing preedit string. At the least, on focus out, the current preedit string should be committed. Instead the sequence I outline here results in a confused state.

      Attachments

        1. Step1_mit.png
          Step1_mit.png
          26 kB
        2. Step2_focusOutandIn.png
          Step2_focusOutandIn.png
          26 kB
        3. Step3_s.png
          Step3_s.png
          27 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            johnweeks John Weeks
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes