I had 2 SQL Worksheet tabs open (connected to 2 diff. schema, same database). On one of them, I right click and select Float. Align the Main window and Float window side-by-side.
Now, in the main screen, I run a sql using Ctrl+Enter (results appear in grid), click to the Floated window and run another SQL by pressing Ctrl+Enter (results appear in grid)
It's fine up to this point.
Now, I click in the main window and try to re-run the sql there by press Ctrl+Enter BUT the sql executed is in the floated window!
Seems like a bug.
Thanks for reporting this and providing a reproducible test case. It still exists in our 4.0 code line, so I logged a bug for it:
Bug 17822489 - CTRL+ENTER FROM DOCKED WORKSHEET EXECS SQL IN FLOATED WORKSHEET
SQL Developer Team