# Code editor focus bug

**URL:** <https://forum.pinegrow.com/t/code-editor-focus-bug/196>\
**Category:** General\
**Tags:** bug\
**Created:** [September 14, 2016, 7:56pm UTC](https://forum.pinegrow.com/t/code-editor-focus-bug/196 "2016-09-14T19:56:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quaritexa](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/quaritexa/32/101_2.png) [@quaritexa](https://forum.pinegrow.com/u/quaritexa)\
**Post date:** [September 14, 2016, 7:56pm UTC](https://forum.pinegrow.com/t/code-editor-focus-bug/196/1 "2016-09-14T19:56:05Z")

</div>

I select some element in vusial editor, then i hit cmd-e for edit code. But code editor not in focus and I need mouse click on any line of code, for start editing code.

How to fix it?

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)\
**Post date:** [September 14, 2016, 9:17pm UTC](https://forum.pinegrow.com/t/code-editor-focus-bug/196/2 "2016-09-14T21:17:56Z")

</div>

Hi @quaritexa. This is something that @schpengle has mentioned in the Slack team and I wish I was able to say there is a fix to it but it seems to be just the way it is currently handled in Pinegrow. I don’t know if v3 will address this or not. Sorry not really a lot of help!

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [September 19, 2016, 8:23am UTC](https://forum.pinegrow.com/t/code-editor-focus-bug/196/3 "2016-09-19T08:23:58Z")

</div>

From next update PG (2.94) will focus editor when editor will be opened.
