From a4c8bb1f91e7ac91f50f6a585d53f3f9d05bac1c Mon Sep 17 00:00:00 2001 From: Martin Zagora Date: Fri, 19 Dec 2014 10:55:56 +1100 Subject: [PATCH] Update 'addBinding' documentation in KeyBindingManager. --- src/command/KeyBindingManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/command/KeyBindingManager.js b/src/command/KeyBindingManager.js index 67a889bafdb..387e1605b68 100644 --- a/src/command/KeyBindingManager.js +++ b/src/command/KeyBindingManager.js @@ -826,6 +826,7 @@ define(function (require, exports, module) { * @param {?string} platform The target OS of the keyBindings either * "mac", "win" or "linux". If undefined, all platforms not explicitly * defined will use the key binding. + * NOTE: If platform is not specified, Ctrl will be replaced by Cmd for "mac" platform * @return {{key: string, displayKey:String}|Array.<{key: string, displayKey:String}>} * Returns record(s) for valid key binding(s) */ @@ -1451,4 +1452,4 @@ define(function (require, exports, module) { // For unit testing only exports._handleKey = _handleKey; exports._handleKeyEvent = _handleKeyEvent; -}); \ No newline at end of file +});