Web Inspector: Shift-Tab should unindent selected line
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Aug 2016 20:00:31 +0000 (20:00 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Aug 2016 20:00:31 +0000 (20:00 +0000)
https://bugs.webkit.org/show_bug.cgi?id=159316

Patch by Devin Rousso <dcrousso+webkit@gmail.com> on 2016-08-24
Reviewed by Joseph Pecoraro.

* UserInterface/Views/CodeMirrorAdditions.js:
(CodeMirror.keyMap["default"]):
Changed "Shift-Tab" mapping to "indentLess".

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204924 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/CodeMirrorAdditions.js

index 9c8b377..47df69f 100644 (file)
@@ -1,3 +1,14 @@
+2016-08-24  Devin Rousso  <dcrousso+webkit@gmail.com>
+
+        Web Inspector: Shift-Tab should unindent selected line
+        https://bugs.webkit.org/show_bug.cgi?id=159316
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/CodeMirrorAdditions.js:
+        (CodeMirror.keyMap["default"]):
+        Changed "Shift-Tab" mapping to "indentLess".
+
 2016-08-23  Devin Rousso  <dcrousso+webkit@gmail.com>
 
         Web Inspector: resource tree elements should provide "Download File" context menu items
index a18955c..84ebff1 100644 (file)
         return lineRects;
     });
 
-    function ignoreKey(codeMirror)
-    {
-        // Do nothing to ignore the key.
-    }
-
     CodeMirror.keyMap["default"] = {
         "Alt-Up": alterNumber.bind(null, 1),
         "Ctrl-Alt-Up": alterNumber.bind(null, 0.1),
         "Alt-PageDown": alterNumber.bind(null, -10),
         "Shift-Alt-PageDown": alterNumber.bind(null, -100),
         "Cmd-/": "toggleComment",
-        "Shift-Tab": ignoreKey,
+        "Shift-Tab": "indentLess",
         fallthrough: "macDefault"
     };