You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2019/04/10 18:28:49 UTC

[nifi] branch master updated: NIFI-5238: Replaced Shift-F with Shift-Ctrl-F in Jolt Advanced UI for auto-format

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

mcgilman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d92a29  NIFI-5238: Replaced Shift-F with Shift-Ctrl-F in Jolt Advanced UI for auto-format
8d92a29 is described below

commit 8d92a29fb9a6339023f28b892503a8722f78323f
Author: Matthew Burgess <ma...@apache.org>
AuthorDate: Wed Apr 10 11:45:48 2019 -0400

    NIFI-5238: Replaced Shift-F with Shift-Ctrl-F in Jolt Advanced UI for auto-format
    
    This closes #3428
---
 .../src/main/webapp/app/transformjson/transformjson.controller.js      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/src/main/webapp/app/transformjson/transformjson.controller.js b/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/src/main/webapp/app/transformjson/transformjson.controller.js
index 13aa25d..7259075 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/src/main/webapp/app/transformjson/transformjson.controller.js
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-jolt-transform-json-ui/src/main/webapp/app/transformjson/transformjson.controller.js
@@ -113,7 +113,8 @@ var TransformJsonController = function ($scope, $state, $q, $mdDialog, $timeout,
 
         _editor.setOption('extraKeys',{
 
-            'Shift-F': function(cm){
+            // We're not enabling search, so repurpose Shift-Ctrl-F for auto-format / beautify
+            'Shift-Ctrl-F': function(cm){
                 var jsonValue = js_beautify(cm.getDoc().getValue(), {
                     'indent_size': 1,
                     'indent_char': '\t'