Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 0b949dd

Browse files
committed
Merge pull request #9589 from adobe/rlim/custom-key-map
Implement custom keyboard shortcuts support with a user key map file.
2 parents 7800968 + 67013de commit 0b949dd

21 files changed

Lines changed: 995 additions & 31 deletions

src/base-config/keyboard.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"file.newDoc": [
33
"Ctrl-N"
44
],
@@ -161,7 +161,7 @@
161161
"key": "Ctrl-Shift-H"
162162
},
163163
{
164-
"key": "Cmd-Alt-Shift-F",
164+
"key": "Cmd-Opt-Shift-F",
165165
"platform": "mac"
166166
}
167167
],
@@ -207,7 +207,7 @@
207207
"key": "Ctrl-H"
208208
},
209209
{
210-
"key": "Cmd-Alt-F",
210+
"key": "Cmd-Opt-F",
211211
"platform": "mac"
212212
}
213213
],
@@ -223,17 +223,16 @@
223223
"view.increaseFontSize": [
224224
{
225225
"key": "Ctrl-=",
226-
"displayKey": "Cmd-+"
226+
"displayKey": "Ctrl-+"
227227
},
228228
{
229-
"key": "Ctrl-+",
230-
"displayKey": "Cmd-+"
229+
"key": "Ctrl-+"
231230
}
232231
],
233232
"view.decreaseFontSize": [
234233
{
235234
"key": "Ctrl--",
236-
"displayKey": "Cmd-−"
235+
"displayKey": "Ctrl-−"
237236
}
238237
],
239238
"view.restoreFontSize": [
@@ -245,8 +244,8 @@
245244
"displayKey": "Ctrl-\u2191"
246245
},
247246
{
248-
"key": "Ctrl-Alt-Up",
249-
"displayKey": "Ctrl-Alt-\u2191",
247+
"key": "Ctrl-Opt-Up",
248+
"displayKey": "Ctrl-Opt-\u2191",
250249
"platform": "mac"
251250
}
252251
],
@@ -256,8 +255,8 @@
256255
"displayKey": "Ctrl-\u2193"
257256
},
258257
{
259-
"key": "Ctrl-Alt-Down",
260-
"displayKey": "Ctrl-Alt-\u2193",
258+
"key": "Ctrl-Opt-Down",
259+
"displayKey": "Ctrl-Opt-\u2193",
261260
"platform": "mac"
262261
}
263262
],
@@ -333,7 +332,7 @@
333332
}
334333
],
335334
"navigate.newRule": [
336-
"Cmd-Alt-N"
335+
"Ctrl-Alt-N"
337336
],
338337
"file.rename": [
339338
"F2"

src/command/Commands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ define(function (require, exports, module) {
5656
exports.FILE_EXTENSION_MANAGER = "file.extensionManager"; // ExtensionManagerDialog.js _showDialog()
5757
exports.FILE_REFRESH = "file.refresh"; // ProjectManager.js refreshFileTree()
5858
exports.FILE_OPEN_PREFERENCES = "file.openPreferences"; // PreferencesManager.js _handleOpenPreferences()
59+
exports.FILE_OPEN_KEYMAP = "file.openKeyMap"; // KeyBindingManager.js _openUserKeyMap()
5960

6061
// File shell callbacks - string must MATCH string in native code (appshell/command_callbacks.h)
6162
exports.FILE_CLOSE_WINDOW = "file.close_window"; // DocumentCommandHandlers.js handleFileCloseWindow()

0 commit comments

Comments
 (0)