# Ctrl+Enter doesn't work

**URL:** <https://forums.toadworld.com/t/ctrl-enter-doesnt-work/54587>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [February 3, 2022, 4:12pm UTC](https://forums.toadworld.com/t/ctrl-enter-doesnt-work/54587 "2022-02-03T16:12:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gfrezza](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gfrezza](https://forums.toadworld.com/u/gfrezza)\
**Post date:** [February 3, 2022, 4:12pm UTC](https://forums.toadworld.com/t/ctrl-enter-doesnt-work/54587/1 "2022-02-03T16:12:48Z")

</div>

Hello Expert,

I just updated Toad for Oracle from version 10 to the latest version and I discovered that the crtl+enter on sql editor sometimes does not work as before (execute the query at the cursor).  
It seems it happens when there is a TAB in the command:  
 ![image](https://global.discourse-cdn.com/quest/original/2X/b/b9521e5c25f5e8e611252222fefacc20297016ff.png)  
But if select all the query and hit ctrl+enter it works.

Did you encountered the same? Do you have a solotion or a work around?

---

<div class="post-metadata">

**Author:** ![Gary.Jerep](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/gary.jerep/32/205_2.png) [@Gary.Jerep](https://forums.toadworld.com/u/Gary.Jerep)\
**Post date:** [February 3, 2022, 5:02pm UTC](https://forums.toadworld.com/t/ctrl-enter-doesnt-work/54587/2 "2022-02-03T17:02:34Z")

</div>

Welcome to the Toad for Oracle forum!

I'm not seeing this behavior, at least in version 15.1 (latest GA version). Ctl-Enter does still work, although I noticed that it is no longer listed in Toad's master Menu Shortcut Keys list in the Options base. BTW, another shortcut key that executes a query at your editor cursor is Shift-F9, per snap below... have you tried that also?

I did notice that the keyword FROM is highlighted in your screen snap above. If you happen to highlight a portion of your script code, Ctl-Enter (Shift-F9) will attempt to execute what you highlighted, which in this case is not a valid SQL, and hence the error message from Oracle.

![image](https://global.discourse-cdn.com/quest/original/2X/4/465adfd523579cfacb2e9e7f9e352b5062b11fcb.png)

---

<div class="post-metadata">

**Author:** ![gfrezza](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gfrezza](https://forums.toadworld.com/u/gfrezza)\
**Post date:** [February 3, 2022, 5:43pm UTC](https://forums.toadworld.com/t/ctrl-enter-doesnt-work/54587/3 "2022-02-03T17:43:16Z")

</div>

Shift+F9 gives me the same result. Note that the FROM keyworld is higlight by Toad after the error.  
I have Toad 13.1.0.78 and I tried the same on several laptop.  
On longer query I have different errors (i.e. ORA-01756: quoted string not properly terminated).  
And I just discovered that this works:

```auto
select	sysdate from dual --test

```

Summary:  
This works with the cursor at the end of the line or in any position within the line:

```auto
select sysdate from dual

```

This works with the cursor at the end of the line or in any position within the line:

```auto
select	sysdate from dual --test

```

This works highlighting the entire line:

```auto
select	sysdate from dual

```

This doesn't work with the cursor at the end of the line or in any position within the line:

```auto
select	sysdate from dual

```
