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

ASF GitHub Bot commented on DRILL-6611:
---------------------------------------

hrbrmstr opened a new pull request #1392: Implements DRILL-6611 to enable 
meta-enter query submission in web query interface
URL: https://github.com/apache/drill/pull/1392
 
 
   As the git info shows, one file —`query.ftl` has been modified with a small 
addition of vanilla javascript to add an event listener for meta-enter which 
will submit the query vs needing to use the mouse.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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)

Reply via email to