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

Fixed editor losing focus (Issue #4954) #4957

Closed
wants to merge 1 commit into from
Closed

Fixed editor losing focus (Issue #4954) #4957

wants to merge 1 commit into from

Conversation

thefirstofthe300
Copy link
Contributor

Fix for issue #4954

This does the quick fix and calls EditorManager.focusEditor().

Tested this on Linux and it works.

@ghost ghost assigned JeffryBooher Aug 28, 2013
@@ -112,6 +113,7 @@ define(function (require, exports, module) {
showProjectPreferencesDialog(baseUrlValue, result);
}
}
EditorManager.focusEditor();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may cause problems if we try to launch the preferences dialog from another dialog. Maybe we should add a check to see if the editor had focus before the dialog was opened before giving focus back to the editor.

We should also add tests to make sure that the focus is restored properly (both to the editor and to another dialog).

@JeffryBooher
Copy link
Contributor

Closing this as it has become stale. @DaBungalow @RaymondLim commented on this fix so I think we're going to have to fix it int the Modal Dialog code rather than have each dialog blindly give focus back to the editor as this may cause unintended side effects.

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

Successfully merging this pull request may close these issues.

2 participants