#909 Reoccurrence of French keyboard problem

4: Serious

This is a reoccurrence of the French keyboard problem:
"problem with french keyboard"

Probably also related:
"Cannot enter braces { } on Icelandic Mac OS X"


""Go to Opening/Closing Brace" Shortcut Inserts { or }"

From customer:

Same for stable and dev release.
MacOS-X, Snow Leopard.
- Launching DrJava, writing a class Foo.java with {} and [ ], no problem. Saving ok.
- Closing DrJava
- Launching DrJava, opening Foo.java, ok for {} but IMPOSSIBLE TO GET [ ] at the keyboard ! Copy-paste is ok.

When I start a new file from scratch just after launching DrJava, I get the [ ].

As soon as a file has been opened for editing, I can't type [ ], only { }. Even if the file is closed and if I ask "New file" !

From Mathias:

I don't think we ever had it right. It may have worked for the French
keyboard, but it didn't for the Icelandic keyboard:


When I fixed that, I may have inadvertantly broken it for the French
keyboard. What I find really confusing is that it first works, but
stops working after a file has been loaded.

Fascinating. I was just able to reproduce the problem using the Mac OS
X on-screen keyboard. At least that will make it easier to debug.


  • Mathias Ricken

    Mathias Ricken - 2011-04-14

    I started looking at this, and the code that was added for the Icelandic keyboard fix doesn't even get executed for []. I'm also puzzled by the fact that [] work on fresh documents, but not on documents loaded from file.

    I'm going to have to check out the old, working version and add logging to it.

  • Mathias Ricken

    Mathias Ricken - 2011-04-14
    • assigned_to: nobody --> mgricken
  • Mathias Ricken

    Mathias Ricken - 2011-04-14

    Revision 4942 doesn't work either.
    The Icelandic keyboard fix didn't break it, it just broke it differently: Before the Icelandic keyboard fix, {} were not working, but [] were. After it, we have the situation described above, where [] work, but {} don't.
    Continuing to dig (after I come home from work).

  • Mathias Ricken

    Mathias Ricken - 2011-04-15
    • status: open --> open-accepted
  • Mathias Ricken

    Mathias Ricken - 2011-04-15

    It seems like the problem was introduced in revision 4671. The change log states
    "This revision fixes some bugs in the implementation of traversing
    "recent documents" (activated by <CTRL>{<SHIFT>}<BACKQUOTE>
    keystrokes). Recent document traversal nows works uniformly in the
    main frame regardless of focus."
    but I could not tell a difference.
    I have created a test version at http://www.cs.rice.edu/~mgricken/tmp/drjava-french.jar

  • Mathias Ricken

    Mathias Ricken - 2011-04-16
    • status: open-accepted --> closed-fixed
  • Mathias Ricken

    Mathias Ricken - 2011-04-16

    Fixed as of revision 5431.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks