> This problem occurs on Windows 2000 with Sun Java 1.3.1_03.
>
> My "open file" function is mapped to "Alt+E" (brief keymapping).
>
> Using the latest development snapshot of J (0.17.2+), when I do an
> "Alt+E" to open a file, the location bar is left with a single "e" in
> it instead of highlighting the current filename as it used to do.
> This means that to type in the filename that I want, I have to
> backspace over the "e" and then start typing.
This is fixed in this morning's snapshot:
http://armedbear.org/j.zip (source)
http://armedbear.org/j-jar.zip (just j.jar)
The real problem is that Sun Java 1.3.1_03 (on Windows 2000, at least)
delivers key events to keyTyped() even if the Alt key is down. I've
added a workaround for this specific situation, but there may be other
situations where similar things might occur.
The real solution is to use Sun Java 1.4.1_01, which does not deliver
key events to keyTyped() when the Alt key is down and so is not
susceptible to this problem in the first place.
Not to mention being a whole lot faster, better-looking, and generally
less buggy than 1.3.x.
While I was looking into this problem, I availed myself of the oppor-
tunity to use both 1.3.1_03 and 1.4.1_01 under Windows 2000 to run
the standard Fibonacci number benchmark with j's soon-to-be-built-in
Lisp, which is implemented in Java:
(defun fib (n)
(if (<= n 1)
1
(+ (fib (- n 1)) (fib (- n 2)))))
With 1.3.1_03 (HotSpot server), (fib 30) took 4.146 seconds.
With 1.4.1_01 (HotSpot server), (fib 30) took 2.694 seconds.
(In each case, the number reported was the best of 10 consecutive runs.)
-Peter
|