From 04351bbd5969ab213f0643db02960163f1a10244 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Wed, 10 May 2023 16:14:43 +0000 Subject: [PATCH] codemirror: improve code folding (hotkeys) git-svn-id: https://svn.fhem.de/fhem/trunk@27549 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/codemirror/fhem_codemirror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/www/codemirror/fhem_codemirror.js b/fhem/www/codemirror/fhem_codemirror.js index 323b7b58b..bee87fde4 100644 --- a/fhem/www/codemirror/fhem_codemirror.js +++ b/fhem/www/codemirror/fhem_codemirror.js @@ -86,7 +86,7 @@ function AddCodeMirror(e, cb) { cm_active++; loadLink("codemirror/foldgutter.css"); loadScript("codemirror/foldgutter.js", function(){cm_loaded++;} ); - cm_attr.extraKeys['Ctrl-K'] = function(cm){ cm.foldCode(cm.getCursor(),{ scanUp: true }); }; + cm_attr.extraKeys['Ctrl-X'] = function(cm){ cm.foldCode(cm.getCursor(),{ scanUp: true }); }; cm_attr.extraKeys['Ctrl-I'] = function(cm){ CodeMirror.commands.foldAll(cm); }; cm_attr.extraKeys['Ctrl-J'] = function(cm){ CodeMirror.commands.unfoldAll(cm); }; cm_active++; loadScript("codemirror/brace-fold.js", function(){cm_loaded++;} );