atom-keymap
Advanced tools
Comparing version 0.20.0 to 0.21.0
@@ -133,7 +133,7 @@ (function() { | ||
if (isASCII(event.keyCode) && keyIdentifierIsHexCharCode) { | ||
key = keyFromCharCode(event.keyCode); | ||
key = keyFromCharCode(event.keyCode, event.shiftKey); | ||
} else if (keyIdentifierIsHexCharCode) { | ||
hexCharCode = event.keyIdentifier.slice(2); | ||
charCode = charCodeFromHexCharCode(hexCharCode, event.shiftKey); | ||
key = keyFromCharCode(charCode); | ||
charCode = charCodeFromHexCharCode(hexCharCode); | ||
key = keyFromCharCode(charCode, event.shiftKey); | ||
} else { | ||
@@ -312,5 +312,8 @@ key = event.keyIdentifier.toLowerCase(); | ||
charCodeFromHexCharCode = function(hexCharCode, shifted) { | ||
var charCode, trans, _ref3; | ||
charCode = parseInt(hexCharCode, 16); | ||
charCodeFromHexCharCode = function(hexCharCode) { | ||
return parseInt(hexCharCode, 16); | ||
}; | ||
keyFromCharCode = function(charCode, shifted) { | ||
var trans, _ref3; | ||
if ((_ref3 = process.platform) === 'linux' || _ref3 === 'win32') { | ||
@@ -326,6 +329,2 @@ trans = KeyCodeToASCII[charCode]; | ||
} | ||
return charCode; | ||
}; | ||
keyFromCharCode = function(charCode) { | ||
switch (charCode) { | ||
@@ -332,0 +331,0 @@ case 8: |
@@ -309,7 +309,10 @@ (function() { | ||
KeymapManager.prototype.findPartialMatches = function(partialMatchCandidates, target) { | ||
var partialMatches; | ||
var ignoreKeystrokes, partialMatches; | ||
partialMatches = []; | ||
ignoreKeystrokes = new Set; | ||
while (partialMatchCandidates.length > 0 && (target != null) && target !== document) { | ||
partialMatchCandidates = partialMatchCandidates.filter(function(binding) { | ||
if (target.webkitMatchesSelector(binding.selector)) { | ||
if (binding.command === 'unset!') { | ||
return ignoreKeystrokes.add(binding.keystrokes); | ||
} else if (!ignoreKeystrokes.has(binding.keystrokes) && target.webkitMatchesSelector(binding.selector)) { | ||
partialMatches.push(binding); | ||
@@ -316,0 +319,0 @@ return false; |
{ | ||
"name": "atom-keymap", | ||
"version": "0.20.0", | ||
"version": "0.21.0", | ||
"description": "Atom's DOM-aware keymap module", | ||
@@ -5,0 +5,0 @@ "main": "./lib/keymap-manager", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41584
1142