Skip to content

Commit

Permalink
fix: keyboard shortcut unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Jan 19, 2024
1 parent d2b2d0e commit 1a30228
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/spec/KeyBindingManager-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ define(function (require, exports, module) {
"Ctrl-Shift-L": "edit.splitSelIntoLines",
"Alt-Shift-Down": "edit.addCursorToNextLine",
"Alt-Shift-Up": "edit.addCursorToPrevLine",
"F8": "navigate.gotoFirstProblem",
"Ctrl-'": "navigate.gotoFirstProblem",
"Ctrl-1": "file.newFile",
"Ctrl-Alt-H": "view.toggleSidebar",
"Ctrl-Shift-O": "navigate.quickOpen",
Expand Down Expand Up @@ -112,8 +112,7 @@ define(function (require, exports, module) {
displayKey = KeyBindingManager._getDisplayKey(key);
if (platform === "mac") {
explicitPlatform = undefined;
if (commandID === "edit.selectLine" || commandID === "view.toggleSidebar" ||
commandID === "navigate.gotoFirstProblem") {
if (commandID === "edit.selectLine" || commandID === "view.toggleSidebar") {
explicitPlatform = "mac";
}
}
Expand Down Expand Up @@ -810,6 +809,7 @@ define(function (require, exports, module) {
return {
ctrlKey: true,
altKey: true,
key: "1",
keyCode: "1".charCodeAt(0),
code: "Digit1",
immediatePropagationStopped: false,
Expand Down Expand Up @@ -954,6 +954,7 @@ define(function (require, exports, module) {
return {
ctrlKey: true,
keyCode: "A".charCodeAt(0),
key: "A",
code: "KeyA",
immediatePropagationStopped: false,
propagationStopped: false,
Expand Down

0 comments on commit 1a30228

Please sign in to comment.