drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Rudis (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-6611) Add [meta]-[Enter] js handler for query form submission
Date Sat, 14 Jul 2018 18:58:00 GMT
Bob Rudis created DRILL-6611:

             Summary: 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

The new ACE-based SQL query editor is great. Being able to submit the form without using a
mouse would be even better.


 .addEventListener('keydown', function(e) {
 if (!(e.keyCode == 13 && e.metaKey)) return;
 if (e.target.form) doSubmitQueryWithUserName();
{{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

View raw message