first fix for sql query autofocus and submitting the query with ctrl-enter
a bit more flexible fix for sql query autofocus and submitting it with ctrl-enter
moved a comment to previous line