From dev-return-39506-apmail-drill-dev-archive=drill.apache.org@drill.apache.org Sat Jul 14 18:58:04 2018 Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 096C8184F3 for ; Sat, 14 Jul 2018 18:58:04 +0000 (UTC) Received: (qmail 49506 invoked by uid 500); 14 Jul 2018 18:58:03 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 49416 invoked by uid 500); 14 Jul 2018 18:58:03 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 49401 invoked by uid 99); 14 Jul 2018 18:58:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jul 2018 18:58:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 537F4C01BF for ; Sat, 14 Jul 2018 18:58:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id BaLj-G37-hgR for ; Sat, 14 Jul 2018 18:58:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1DA695F300 for ; Sat, 14 Jul 2018 18:58:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1CC6EE2567 for ; Sat, 14 Jul 2018 18:58:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4A1A123F9E for ; Sat, 14 Jul 2018 18:58:00 +0000 (UTC) Date: Sat, 14 Jul 2018 18:58:00 +0000 (UTC) From: "Bob Rudis (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-6611) Add [meta]-[Enter] js handler for query form submission MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Bob Rudis created DRILL-6611: -------------------------------- Summary: Add [meta]-[Enter] js handler for query form submissi= on 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. Adding: =C2=A0 {noformat} document.getElementById('queryForm') .addEventListener('keydown', function(e) { if (!(e.keyCode =3D=3D 13 && e.metaKey)) return; if (e.target.form) doSubmitQueryWithUserName(); }); {noformat} {{to ./exec/java-exec/src/main/resources/rest/query/query.ftl adds such sup= port.}} I can file a PR with the code if desired. -- This message was sent by Atlassian JIRA (v7.6.3#76005)