Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6616701

On MAWT TextArea, Ctrl+Shift key for IIIMF-zh_CN doesn't work.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 6
    • client-libs

      On MAWT TextArea, Ctrl+Shift key for IIIMF-zh_CN doesn't work.
      Ctrl+Shift means that we hold Ctrl key pressed and then press Shift key. It's assigned for switching input mode of IIIMF-zh_CN.

      Test instructions are as follows:

      1. Install Redhat Enterprise Linux 4 with Chinese locale support (zh_CN.UTF-8).

      2. Login Desktop environment in zh_CN.UTF-8.

      3. Compile and run the attached sample code with MToolkit.
      $ AWT_TOOLKIT=MToolkit java TextAreaTest

      4. Turn on IIIMF-zh_CN by pressing Ctrl+Space key.

      5. Press Ctrl + Shift key to switch input mode.
      => Nothing happened. <= Problem.

      Expected result:
      By pressing Ctrl+Shift key, input mode of IIIMF-zh_CN should switch. You can confirm it by the string of IM status. Swing JTextArea behaves correctly and can be used as a reference.

      Additional Information:
      When Ctrl+Shift key is pressed, IIIMF receives "Shift key press with Ctrl+Shift modifier" event. It seems IIIMF expects "Shift key press with Ctrl modifier". I don't know why Shift modifier was set
      by just pressing Shift key.

      ======== TextAreaTest.java ====================================
      import java.awt.*;
      public class TextAreaTest extends TextArea {
              public TextAreaTest() {
                      super();
              }
              public static void main(String[] args) {
                      Frame frame = new Frame();
                      frame.add(new TextAreaTest());
                      frame.setSize(300, 100);
                      frame.setVisible(true);
              }
      }
      ============================================================

            naoto Naoto Sato
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: