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

Ctrl-SPACE does not work in NetBeans

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • quicksilver
    • client-libs
    • None

      Not sure into which cathegory this problem belongs, so please reassign as necessary.

      The original bug report was filled against NetBeans and can be found here:
      http://www.netbeans.org/issues/show_bug.cgi?id=48287

      In NetBeans (and other Java IDEs), shortcut Ctrl-SPACE is used to invoke so called code
      completion. This shortcut does not work on Java Desktop System Release 2, with
      "jdk1.5.0-rc-b63" (seen also on JDK1.4.2). It seems that the proble occurs only on
      Java Desktop System.
      The behaviour is as follows:
      1. It seems there is some kind of "flag", which is switched "on" and "off" when Ctrl-SPACE
      is press. At the beginning, the flag is off. If the flag is "off", all but Ctrl-SPACE shortcuts
      seem to perform well. If the flag is "on", shortcuts Ctrl-something does not work.
      2. We analysed the key events that come for Ctrl-SPACE. The sequence for Ctrl-SPACE on JDS is:
      Ctrl PRESSED
      ' ' RELEASED
      Ctrl RELEASED
      although the correct sequence is:
      Ctrl PRESSED
      ' ' PRESSED (with modifier Ctrl) //this is the most important event, because actions are bound to these event.
      ' ' RELEASED
      Ctrl RELEASED

      something similar occurs for all Ctrl-something shortcuts when the flag is "on" (the pressed
      event for the key does not arrive), if the flag is "off", everything seems to be OK (the pressed
      event for the key arrives), for all Ctrl-something shortcuts, except Ctrl-SPACE.
      3. It seems that this is not problem of NetBeans:
      a)reported also against the IDEA IDE:
      http://supportforum.sun.com/sjds/index.php?t=msg&goto=2731&rid=0%20http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Event.html%20-%20January%2010,%202004#msg_2731
      b)the event analysis in point 2 was done using a very simple Swing application (using only
      a JEditorPane with attached listeners).

      This makes it very difficult to use the IDE. It is possible the some input methods are bound to
      the Ctrl-SPACE shortcut, but there is not visal feedback, so the user cannot find what is going on.
      Also the "flag" that switches the behaviour makes the IDE factualy unusable (after first press of
      Ctrl-SPACE, the user needs to press it once more to be able to use the IDE). I have searched the keyboard
      shortcuts (I haven't found any that would map to Ctrl-SPACE), and I also look at the assistive technologies
      and it seemed to be switched off.

      Note: the "flag" above is used only to describe the behaviour, it is possible that none flag exists
      in reality. Also, it is also possible that other shortcuts are influenced by the flag.

      ###@###.### 2004-09-03
      ###@###.### 2004-09-07

            yyamasaksunw Yuriko Yamasaki (Inactive)
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: