CHE-5206. Fix focus position at editor state restoring #5665
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
We need set focus in corresponding editor when editor has initialized. Otherwise we have case when active tab does not match editor which has actual focus. It leads to different issues related with editor content sync.
![editor_focus](https://user-images.githubusercontent.com/5676062/28257617-dd512b50-6ad4-11e7-9ee5-6b84b99fb39b.png)
What issues does this PR fix or reference?
#5206 #5190
Changelog
Fix focus position at editor state restoring
Signed-off-by: Roman Nikitenko rnikiten@redhat.com