#659 Focus remains on hidden session window for Alt-Arrow

2.6.6
closed-fixed
Core (462)
5
2008-09-04
2008-09-04
Rob Manning
No

Johnathan James reported this bug (and provided a fix as well) on the dev list. This is just to document the issue and the fix.

Email from Johnathan on Aug 25:

Hello all..

I have been trying to work with the source this weekend to fix a bug that
has been bugging me. Basically, if you open a new Session from the Aliases
window, then CTRL-N to create a new window, if you press ALT-ForwardArrow,
usually the focus will remain in the second window, when it should have
moved to the second. So if you type, it will affect the window just hidden,
not the one you just made visible.

Email from Johnathan on Aug 26:

I was on JDK 1.5.09 this morning, but I have since upgraded and rebuilt the project under JDK 1.6.0-b105. I am running Ubuntu.

I am still able to reproduce the error.

1. Open a session from the Aliases window.
2. Hit Ctrl-N. You should have two session windows.
3. Hit Alt-RightArrow. The cursor's focus should be in the first window you opened.
4. Hit Alt-RightArrow again, cursor focus will be in the second window.
5. Hit Alt-RightArrow again, cursor focus will still be in the second window.

Email from Johnathan on Aug 31:

In that case, in order to fix the bug that I was referring to earlier, all that is necessary is to remove the internalFrameActivated() method from the internalFrameListener() added in the createGUI() method of the class SessionInternalFrame. It seems the Java bug that necessitated that method, has been fixed as of at least Java 1.5.

Discussion

  • Rob Manning

    Rob Manning - 2008-09-04
    • labels: --> Core
    • milestone: --> 2.6.6
    • assigned_to: nobody --> manningr
     
  • Rob Manning

    Rob Manning - 2008-09-04

    Logged In: YES
    user_id=1287991
    Originator: YES

    2092902: Focus remains on hidden session window for Alt-Arrow. Removed code which was a work-around for a bug in java 1.3, that has since been fixed and was actually producing a bug seen in java5 and java6, where the Alt-RightArrow key shortcut switched session windows into the foreground without giving them focus. Thanks to Johnathan James for the bug-fix.

     
  • Rob Manning

    Rob Manning - 2008-09-04
    • status: open --> closed-fixed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks