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

Fix issue 2078 #3058

Merged
merged 12 commits into from
Mar 11, 2013
Merged

Fix issue 2078 #3058

merged 12 commits into from
Mar 11, 2013

Conversation

lkcampbell
Copy link
Contributor

Fix for issue #2078.

@ghost ghost assigned redmunds Mar 7, 2013
* @param {string|{{key: string, displayKey: string}}} keyBinding - a single shortcut.
* @param {?string} platform - undefined indicates all platforms
* @return {?{key: string, displayKey:String}} Returns a record for valid key bindings.
* Returns null when key binding platform does not match, binding does not normalize,
* or is already assigned.
*/
function _addBinding(commandID, keyBinding, platform) {
function _addBinding(command, keyBinding, platform) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_addBinding() is an private function (i.e. it's only called within this file), so it doesn't need to handle both command and commandID.

Only the public API functions (addBinding() and getKeyBindings()) need to be updated.

@redmunds
Copy link
Contributor

Done with initial review.

@redmunds
Copy link
Contributor

Lance, be sure to add a comment to pull requests when you're done with updates so reviewers get an e-mail notification.

Looks good. Merging.

redmunds added a commit that referenced this pull request Mar 11, 2013
@redmunds redmunds merged commit 87bd72f into adobe:master Mar 11, 2013
@lkcampbell lkcampbell deleted the fix-issue-2078 branch March 12, 2013 01:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants