DRILL-6933: Fix ctrl+enter when Impersonation is disabled
Without impersonation, the key combination did not work because a conditional block of the FTLs skipped the Javascript functions required for submitting with the key combination.
This commit fixes that by unifying the functions that are common to both approaches of submitting a query (with and without impersoination)
[Update] Changes made to isOnlyImpersonationEnabled method and onlyImpersonationEnabled variable
[Update] userName is a global var in the script
closes #1591
Committer
Hanumath Maduri