Skip to content

Commit 3b9d9ac

Browse files
committed
Merge pull request #362 from joeysim/ctrl-s-for-save
added support for saving query with ctrl+s
2 parents d941e5e + 2536fd5 commit 3b9d9ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rd_ui/app/scripts/controllers/query_source.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
$scope.saveQuery();
2222
}
2323
},
24+
'ctrl+s': function () {
25+
if ($scope.canEdit) {
26+
$scope.saveQuery();
27+
}
28+
},
2429
// Cmd+Enter for Mac
2530
'meta+enter': function () {
2631
$scope.executeQuery();

0 commit comments

Comments
 (0)