Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#14 Accelerator characters inserted into text

release
closed
nobody
None
3
2006-10-02
2001-02-20
Steve LoBasso
No

This seems to be an issue at window creation time.
Occasionally I need 3 or 4 new windows to work with. I simply go to an existing nedit window and
type the "new window" accelerator 3 or 4 times. I've noticed that sometimes I get text in the window.
After looking into it I found that it's the actual text of my accelerator. I can duplicate it with any accelerator
on multiple platforms. It's somewhat timing sensitive, but very reproducible.
Just type any accelerator as the window is being created. It may take a few tries.

Discussion

  • Scott Tringali
    Scott Tringali
    2001-02-21

    • milestone: 100100 --> release
     
  • Scott Tringali
    Scott Tringali
    2001-03-25

    Logged In: YES
    user_id=11321

    This is an annoying bug that's been in NEdit for as long as
    I can remember. It appears to be a race condition with
    popping up a new window and installing the accelerators on
    that window. The new window is getting events for the
    accelerators before they are installed.

    Inserting XSync at a few key locations yielded no
    appreciable difference. My guess is we'd have to do
    something a little bit fancier like managing the window
    off-screen, adding the accelerators, and then mapping it
    when ready. I don't know the internals of Xt enough to know
    if that would fix the problem, though.

    We might even have to go as far as having a "lock" bit on
    the text widget that is set and cleared at appropriate times
    by the application. For example, when posting a new window,
    NEdit could set the lock bit first, create the new window,
    and then unlock all the locked windows.

    Normally, XtSetSensitive() is used for such things, but it
    would generate an ugly flash on the screen.

     
  • Scott Tringali
    Scott Tringali
    2001-04-05

    Logged In: YES
    user_id=11321

    Lowered priority since it's been around for so long.

     
  • Scott Tringali
    Scott Tringali
    2001-04-05

    • priority: 5 --> 3
     
  • Han Holl
    Han Holl
    2002-06-19

    Logged In: YES
    user_id=14259

    I guess the following is related, but if it isn't I could
    open a new bug.
    I noticed (when editing on a remote machine, with a
    saturated network)
    that if I typed ^F (for find) the characters I typed before
    the dialog
    appeared where inserted in the text.
    Normally you are not fast enough to trigger this.
    I think nedit should stop inserting when it has seen a
    command string.

     
  • Thorsten Haude
    Thorsten Haude
    2005-02-06

    Logged In: YES
    user_id=119143

    First thought: Is this still a problem after the thourough
    change of the window creation parts?

     
  • Thorsten Haude
    Thorsten Haude
    2005-11-25

    Logged In: YES
    user_id=119143

    Is this still a problem after the thourough
    change of the window creation parts?

     
  • Thorsten Haude
    Thorsten Haude
    2006-09-17

    Logged In: YES
    user_id=119143

    I don't see the problem here, is it still showing elsewhere?

     
  • Thorsten Haude
    Thorsten Haude
    2006-09-17

    • status: open --> pending-works-for-me
     
  • Scott Tringali
    Scott Tringali
    2006-09-26

    Logged In: YES
    user_id=11321

    Yes, I see it from time to time, but the faster the system
    it is the less likely you'll see it.

    It's gotten better since the menu creation code has been
    sped up a bit, but I'm sure the race is not gone.

     
  • Scott Tringali
    Scott Tringali
    2006-09-26

    • status: pending-works-for-me --> pending
     
    • status: pending --> closed
     
  • Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).