Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atom-keymap

Package Overview
Dependencies
Maintainers
3
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-keymap - npm Package Compare versions

Comparing version 0.20.0 to 0.21.0

19

lib/helpers.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc