# Data Explorer - SQL editor becomes unavailable after pressing any key while focused

**URL:** https://meta.discourse.org/t/data-explorer-sql-editor-becomes-unavailable-after-pressing-any-key-while-focused/53410
**Category:** Bug
**Created:** [November 27, 2016, 3:38am UTC](https://meta.discourse.org/t/data-explorer-sql-editor-becomes-unavailable-after-pressing-any-key-while-focused/53410 "2016-11-27T03:38:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [November 27, 2016, 3:38am UTC](https://meta.discourse.org/t/data-explorer-sql-editor-becomes-unavailable-after-pressing-any-key-while-focused/53410/1 "2016-11-27T03:38:25Z")

</div>

I updated to latest yesterday.

How to reproduce:

1. Create new or open an existing SQL query:  

2. Put focus in the SQL editor:  

3. Press any key. In my test, I press “s”. Editor becomes unavailable and the cursor disappears:

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 27, 2016, 4:27am UTC](https://meta.discourse.org/t/data-explorer-sql-editor-becomes-unavailable-after-pressing-any-key-while-focused/53410/2 "2016-11-27T04:27:13Z")

</div>

Can we repro this @eviltrout?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [November 27, 2016, 4:57am UTC](https://meta.discourse.org/t/data-explorer-sql-editor-becomes-unavailable-after-pressing-any-key-while-focused/53410/3 "2016-11-27T04:57:05Z")

</div>

I definitely can (on my up to date sandbox). I imagine it is related to this topic:

> [@Problem with Customize \[CSS/HTML\]](https://meta.discourse.org/t/problem-with-customize-css-html/53392):
>
> Hi, I reinstall the Latest Discourse, then I copy and paste code to css and header, and I see problem like this I cannot type or paste I’m using Firefox 50.0

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 28, 2016, 4:34pm UTC](https://meta.discourse.org/t/data-explorer-sql-editor-becomes-unavailable-after-pressing-any-key-while-focused/53410/4 "2016-11-28T16:34:36Z")

</div>

It was indeed the same bug, fixed here:

[https://github.com/discourse/discourse/commit/d9cf9e2fb1d2be11e3b703be3836ceb3a56c1b0c](https://github.com/discourse/discourse/commit/d9cf9e2fb1d2be11e3b703be3836ceb3a56c1b0c)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 28, 2016, 4:34pm UTC](https://meta.discourse.org/t/data-explorer-sql-editor-becomes-unavailable-after-pressing-any-key-while-focused/53410/5 "2016-11-28T16:34:39Z")

</div>


