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

Commit

Permalink
Improved error message when trying to use a modifier twice in a shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisKehrig committed Oct 16, 2012
1 parent 0beaa9f commit 9d204d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command/KeyBindingManager.js
Expand Up @@ -126,13 +126,13 @@ define(function (require, exports, module) {
right = right.trim().toLowerCase();
var matched = (left.length > 0 && left === right);
if (matched && previouslyFound) {
console.log("KeyBindingManager normalizeKeyDescriptorString() - Modifier defined twice: " + origDescriptor);
console.log("KeyBindingManager normalizeKeyDescriptorString() - Modifier " + left + " defined twice: " + origDescriptor);
}
return matched;
}

origDescriptor.split("-").forEach(function parseDescriptor(ele, i, arr) {
if (_compareModifierString("ctrl", ele, hasCtrl)) {
if (_compareModifierString("ctrl", ele, hasCtrl, origDescriptor)) {
if (brackets.platform === "mac") {
hasMacCtrl = true;
} else {
Expand Down

0 comments on commit 9d204d7

Please sign in to comment.