Changeset 206426 in webkit


Ignore:
Timestamp:
Sep 27, 2016 2:27:28 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Mac defaults are used for key shortcuts on Linux
https://bugs.webkit.org/show_bug.cgi?id=162564

Don't set Mac's default keymap as a fallthrough for CodeMirror when we
are not on Mac.

Patch by Tomas Popela <tpopela@redhat.com> on 2016-09-27
Reviewed by Carlos Garcia Campos.

  • UserInterface/Test.html: Include Platform.js for the

WebInspector.Platform definition.

  • UserInterface/Views/CodeMirrorAdditions.js:
Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r206406 r206426  
     12016-09-27  Tomas Popela  <tpopela@redhat.com>
     2
     3        [GTK] Mac defaults are used for key shortcuts on Linux
     4        https://bugs.webkit.org/show_bug.cgi?id=162564
     5
     6        Don't set Mac's default keymap as a fallthrough for CodeMirror when we
     7        are not on Mac.
     8
     9        Reviewed by Carlos Garcia Campos.
     10
     11        * UserInterface/Test.html: Include Platform.js for the
     12        WebInspector.Platform definition.
     13        * UserInterface/Views/CodeMirrorAdditions.js:
     14
    1152016-09-26  Matt Baker  <mattbaker@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Test.html

    r205754 r206426  
    3838    <script src="Base/WebInspector.js"></script>
    3939    <script src="Base/InspectorFrontendHostStub.js"></script>
     40    <script src="Base/Platform.js"></script>
    4041    <script src="Base/LinkedList.js"></script>
    4142    <script src="Base/ListMultimap.js"></script>
  • trunk/Source/WebInspectorUI/UserInterface/Views/CodeMirrorAdditions.js

    r205425 r206426  
    573573    });
    574574
     575    let mac = WebInspector.Platform.name === "mac";
     576
    575577    CodeMirror.keyMap["default"] = {
    576578        "Alt-Up": alterNumber.bind(null, 1),
     
    587589        "Cmd-D": "selectNextOccurrence",
    588590        "Shift-Tab": "indentLess",
    589         fallthrough: "macDefault"
     591        fallthrough: mac ? "macDefault" : "pcDefault"
    590592    };
    591593
Note: See TracChangeset for help on using the changeset viewer.