You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2018/08/14 04:44:00 UTC

[incubator-superset] branch master updated: Add option to run query with ctrl+enter (#5622)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c1d906  Add option to run query with ctrl+enter (#5622)
5c1d906 is described below

commit 5c1d90697654a6d9d38d2c2214e5c53358409597
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Mon Aug 13 21:43:57 2018 -0700

    Add option to run query with ctrl+enter (#5622)
---
 superset/assets/src/SqlLab/components/SqlEditor.jsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/superset/assets/src/SqlLab/components/SqlEditor.jsx b/superset/assets/src/SqlLab/components/SqlEditor.jsx
index a4cb4eb..f396e76 100644
--- a/superset/assets/src/SqlLab/components/SqlEditor.jsx
+++ b/superset/assets/src/SqlLab/components/SqlEditor.jsx
@@ -99,12 +99,18 @@ class SqlEditor extends React.PureComponent {
   getHotkeyConfig() {
     return [
       {
-        name: 'runQuery',
+        name: 'runQuery1',
         key: 'ctrl+r',
         descr: 'Run query',
         func: this.runQuery,
       },
       {
+        name: 'runQuery2',
+        key: 'ctrl+enter',
+        descr: 'Run query',
+        func: this.runQuery,
+      },
+      {
         name: 'newTab',
         key: 'ctrl+t',
         descr: 'New tab',