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

atom-keymap

Package Overview
Dependencies
Maintainers
2
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.15.0 to 0.16.0

45

lib/helpers.js
(function() {
var AtomModifiers, KeyboardEventModifiers, SpecificityCache, fs, isAscii, keyFromCharCode, loophole, modifier, normalizeKeystroke, parseKeystroke, parser, pegjs, specificity, _i, _j, _len, _len1, _ref, _ref1, _ref2;
var AtomModifiers, KeyboardEventModifiers, SpecificityCache, charCodeFromHexCharCode, fs, isAscii, keyFromCharCode, loophole, modifier, normalizeKeystroke, parseKeystroke, parser, pegjs, specificity, _i, _j, _len, _len1, _ref, _ref1, _ref2;

@@ -46,3 +46,3 @@ specificity = require('clear-cut').specificity;

hexCharCode = event.keyIdentifier.slice(2);
charCode = parseInt(hexCharCode, 16);
charCode = charCodeFromHexCharCode(hexCharCode);
if (!isAscii(charCode) && isAscii(event.which)) {

@@ -64,3 +64,3 @@ charCode = event.which;

if (event.shiftKey) {
if (!/^[^A-Za-z]$/.test(key)) {
if (!(/^[^A-Za-z]$/.test(key) && process.platform !== 'linux')) {
keystroke.push('shift');

@@ -215,2 +215,41 @@ }

charCodeFromHexCharCode = function(hexCharCode) {
var charCode;
charCode = parseInt(hexCharCode, 16);
if (process.platform === 'linux') {
switch (charCode) {
case 186:
charCode = 59;
break;
case 187:
charCode = 61;
break;
case 188:
charCode = 44;
break;
case 189:
charCode = 45;
break;
case 190:
charCode = 46;
break;
case 191:
charCode = 47;
break;
case 219:
charCode = 91;
break;
case 220:
charCode = 92;
break;
case 221:
charCode = 93;
break;
case 222:
charCode = 39;
}
}
return charCode;
};
keyFromCharCode = function(charCode) {

@@ -217,0 +256,0 @@ switch (charCode) {

2

package.json
{
"name": "atom-keymap",
"version": "0.15.0",
"version": "0.16.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