You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2018/07/15 13:04:00 UTC

[jira] [Commented] (DRILL-6611) Add [meta]-[Enter] js handler for query form submission

    [ https://issues.apache.org/jira/browse/DRILL-6611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16544539#comment-16544539 ] 

Arina Ielchiieva commented on DRILL-6611:
-----------------------------------------

[~hrbrmstr] contributions are welcome. Sure you can file a PR.
[~kkhatua] FYI.

> Add [meta]-[Enter] js handler for query form submission
> -------------------------------------------------------
>
>                 Key: DRILL-6611
>                 URL: https://issues.apache.org/jira/browse/DRILL-6611
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Web Server
>    Affects Versions: 1.14.0
>            Reporter: Bob Rudis
>            Priority: Minor
>
> The new ACE-based SQL query editor is great. Being able to submit the form without using a mouse would be even better.
> Adding:
>  
> {noformat}
> document.getElementById('queryForm')
>  .addEventListener('keydown', function(e) {
>  if (!(e.keyCode == 13 && e.metaKey)) return;
>  if (e.target.form) doSubmitQueryWithUserName();
> });
> {noformat}
> {{to ./exec/java-exec/src/main/resources/rest/query/query.ftl adds such support.}}
> I can file a PR with the code if desired.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)