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

atom-keymap

Package Overview
Dependencies
Maintainers
1
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.4.0 to 0.5.0

11

lib/keymap.js

@@ -166,8 +166,8 @@ (function() {

Keymap.prototype.findKeyBindings = function(params) {
var bindings, candidateBindings, command, element, keystrokes, matchingBindings, target;
var bindings, candidateBindings, command, element, keyBindings, keystrokes, matchingBindings, target;
if (params == null) {
params = {};
}
keystrokes = params.keystrokes, command = params.command, target = params.target;
bindings = this.keyBindings;
keystrokes = params.keystrokes, command = params.command, target = params.target, keyBindings = params.keyBindings;
bindings = keyBindings != null ? keyBindings : this.keyBindings;
if (command != null) {

@@ -435,6 +435,7 @@ bindings = bindings.filter(function(binding) {

Keymap.prototype.keyBindingsMatchingElement = function(target) {
Keymap.prototype.keyBindingsMatchingElement = function(target, keyBindings) {
var _ref1;
return this.findKeyBindings({
target: (_ref1 = target[0]) != null ? _ref1 : target
target: (_ref1 = target[0]) != null ? _ref1 : target,
keyBindings: keyBindings
});

@@ -441,0 +442,0 @@ };

{
"name": "atom-keymap",
"version": "0.4.0",
"version": "0.5.0",
"description": "Atom's DOM-aware keymap module",

@@ -5,0 +5,0 @@ "main": "./lib/keymap",

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