Repaired autofocus on sql tab & submitting the textbox with ctrl-enter

Howdy!

Today, while running some queries in phpmyadmin, I ran into some trouble. On the rightmost frame, in the sql tab, the cursor didn't automatically go to the textarea. This was bit of a downer, but I carried merrily on with my life for a few passing seconds until I remembered that the tabulator did not function as before (I am quite used to hit it a couple of times to guide the focus to the "Go" button before pressing enter). Oh silly me. 

Sooo.... A couple of hours later while trying to kill the tab-eating feature I found out that there was a legitimate way of submitting the form with keyboard! Oh joy! Too bad it wasn't working (Firefox 17.0.1 on W7). Same thing with the autofocus. The textbox focusing code seemed a bit old, because removing codemirror initialization would throw the cursor nicely inside the textbox. 

Sorry for a bit hackish way of binding the keypress, but I didn't find a better way for the current codemirror.js v.2.18


Juuso