Skip to content

Commit 937ccdc

Browse files
committed
fix: collapse expand key binding not working in browsers
1 parent 78307f0 commit 937ccdc

File tree

1 file changed

+4
-4
lines changed
  • src/extensions/default/CodeFolding

1 file changed

+4
-4
lines changed

src/extensions/default/CodeFolding/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ define(function (require, exports, module) {
4949
GUTTER_NAME = "CodeMirror-foldgutter",
5050
CODE_FOLDING_GUTTER_PRIORITY = Editor.CODE_FOLDING_GUTTER_PRIORITY,
5151
codeFoldingMenuDivider = "codefolding.divider",
52-
collapseKey = "Ctrl-Shift-[",
53-
expandKey = "Ctrl-Shift-]";
52+
collapseKey = "Ctrl-Shift-{",
53+
expandKey = "Ctrl-Shift-}";
5454

5555
ExtensionUtils.loadStyleSheet(module, "main.less");
5656

@@ -413,8 +413,8 @@ define(function (require, exports, module) {
413413
Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).addMenuItem(EXPAND);
414414

415415
//register keybindings
416-
KeyBindingManager.addBinding(COLLAPSE, [{key: collapseKey}]);
417-
KeyBindingManager.addBinding(EXPAND, [{key:expandKey}]);
416+
KeyBindingManager.addBinding(COLLAPSE, [{key: collapseKey}, {key: collapseKey, platform: "mac"}]);
417+
KeyBindingManager.addBinding(EXPAND, [{key:expandKey}, {key:expandKey, platform: "mac"}]);
418418

419419

420420
// Add gutters & restore saved expand/collapse state in all currently open editors

0 commit comments

Comments
 (0)