Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

showModalDialogUsingTemplate doesn't blur current editor #7598

Closed
zaggino opened this issue Apr 22, 2014 · 12 comments
Closed

showModalDialogUsingTemplate doesn't blur current editor #7598

zaggino opened this issue Apr 22, 2014 · 12 comments

Comments

@zaggino
Copy link
Contributor

zaggino commented Apr 22, 2014

Thought picture would be easiest:

focus_bug

@RaymondLim
Copy link
Contributor

@zaggino Not sure why this focus issue still can be reproduced even after Reload w/o extension is invoked, but I'm sure that if you explicitly move your git extension out of the user folder, then we don't see the issue.

@lkcampbell
Copy link
Contributor

@zaggino, let me know if what @RaymondLim just said is reproducible. I would be interested in seeing a case where Reload Without Extensions might be failing like that.

@marcelgerber
Copy link
Contributor

@RaymondLim Nope, I can even repro it with extension moved out of user folder.
Not a fail of Reload w/o extensions.

Windows 8.1

E: I can even repro it without AppData/Brackets folder (no cache and so on). Definitely a Brackets bug.

@marcelgerber
Copy link
Contributor

I can repro this back to Sprint 30, so no recent change. Notice this only happens with the Switch language dialog, where the primaryButton is disabled by default.

@RaymondLim
Copy link
Contributor

@SAplayer You're right! Somehow I can't reproduce it with my earlier testing on my mac. Now I can reproduce it with no extension in my user folder.

@zaggino
Copy link
Contributor Author

zaggino commented Apr 22, 2014

https:/adobe/brackets/blob/master/src/widgets/Dialogs.js#L306-L310

I don't think that the dialogs should rely with focus on existence of .primary button and also the whole if is wrong there because jQuery returns array even if it doesn't find anything so it should be just $dlg.find(".primary").focus();

@njx njx added this to the Brackets 1.0 milestone Apr 28, 2014
@njx njx self-assigned this Apr 28, 2014
@njx
Copy link
Contributor

njx commented Apr 28, 2014

Low pri to me for 1.0. It's low because there probably aren't many dialogs that run into this issue, since most dialogs have an enabled primary button, but we should fix it anyway.

@peterflynn
Copy link
Member

@njx looks like fix already in progress: PR #7677

@njx njx assigned TomMalbran and unassigned njx Apr 28, 2014
@njx
Copy link
Contributor

njx commented Apr 28, 2014

Nice, reassigning to @TomMalbran

@njx
Copy link
Contributor

njx commented May 1, 2014

Reviewed, leaving in 1.0.

@njx
Copy link
Contributor

njx commented Jun 3, 2014

Marking fixed but not closed to @zaggino - please confirm and close. Thanks!

@zaggino
Copy link
Contributor Author

zaggino commented Jun 4, 2014

Confirmed fixed, closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants