atom-keymap
Advanced tools
Comparing version 7.1.3-8 to 7.1.3-9
36
api.json
@@ -6,3 +6,3 @@ { | ||
"filename": "src/keymap-manager.coffee", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L65", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L65", | ||
"sections": [ | ||
@@ -42,3 +42,3 @@ { | ||
"sectionName": "Class Methods", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L82", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L82", | ||
"visibility": "Public", | ||
@@ -105,3 +105,3 @@ "summary": "Create a keydown DOM event for testing purposes.", | ||
"sectionName": "Construction and Destruction", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L107", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L107", | ||
"visibility": "Public", | ||
@@ -130,3 +130,3 @@ "summary": "Create a new KeymapManager.", | ||
"sectionName": "Construction and Destruction", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L115", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L115", | ||
"visibility": "Public", | ||
@@ -139,3 +139,3 @@ "summary": "Clear all registered key bindings and enqueued keystrokes. For use\nin tests. ", | ||
"sectionName": "Construction and Destruction", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L123", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L123", | ||
"visibility": "Public", | ||
@@ -148,3 +148,3 @@ "summary": "Unwatch all watched paths. ", | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L144", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L144", | ||
"visibility": "Public", | ||
@@ -199,3 +199,3 @@ "summary": "Invoke the given callback when one or more keystrokes completely\nmatch a key binding.", | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L160", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L160", | ||
"visibility": "Public", | ||
@@ -250,3 +250,3 @@ "summary": "Invoke the given callback when one or more keystrokes partially\nmatch a binding.", | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L174", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L174", | ||
"visibility": "Public", | ||
@@ -295,3 +295,3 @@ "summary": "Invoke the given callback when one or more keystrokes fail to match\nany bindings.", | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L205", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L205", | ||
"visibility": "Public", | ||
@@ -340,3 +340,3 @@ "summary": "Invoke the given callback when a keymap file not able to be loaded.", | ||
"sectionName": "Adding and Removing Bindings", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L220", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L220", | ||
"visibility": "Public", | ||
@@ -369,3 +369,3 @@ "summary": "Add sets of key bindings grouped by CSS selector.", | ||
"sectionName": "Accessing Bindings", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L259", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L259", | ||
"visibility": "Public", | ||
@@ -384,3 +384,3 @@ "summary": "Get all current key bindings.", | ||
"sectionName": "Accessing Bindings", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L274", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L274", | ||
"visibility": "Public", | ||
@@ -427,3 +427,3 @@ "summary": "Get the key bindings for a given command and optional target.", | ||
"sectionName": "Managing Keymap Files", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L311", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L311", | ||
"visibility": "Public", | ||
@@ -464,3 +464,3 @@ "summary": "Load the key bindings from the given path.", | ||
"sectionName": "Managing Keymap Files", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L334", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L334", | ||
"visibility": "Public", | ||
@@ -495,3 +495,3 @@ "summary": "Cause the keymap to reload the key bindings file at the given path\nwhenever it changes.", | ||
"sectionName": "Managing Keyboard Events", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L406", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L406", | ||
"visibility": "Public", | ||
@@ -512,3 +512,3 @@ "summary": "Dispatch a custom event associated with the matching key binding for\nthe given `KeyboardEvent` if one can be found.", | ||
"sectionName": "Managing Keyboard Events", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L625", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L625", | ||
"visibility": "Public", | ||
@@ -535,3 +535,3 @@ "summary": "Translate a keydown event to a keystroke string.", | ||
"sectionName": "Managing Keyboard Events", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L646", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L646", | ||
"visibility": "Public", | ||
@@ -584,3 +584,3 @@ "summary": "Customize translation of raw keyboard events to keystroke strings.\nThis API is useful for working around Chrome bugs or changing how Atom\nresolves certain key combinations. If multiple resolvers are installed,\nthe most recently-added resolver returning a string for a given keystroke\ntakes precedence.", | ||
"sectionName": "Managing Keyboard Events", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-8/src/keymap-manager.coffee#L656", | ||
"srcUrl": "https://github.com/atom/atom-keymap/blob/v7.1.3-9/src/keymap-manager.coffee#L656", | ||
"visibility": "Public", | ||
@@ -587,0 +587,0 @@ "summary": "Get the number of milliseconds allowed before pending states caused\nby partial matches of multi-keystroke bindings are terminated.", |
@@ -174,3 +174,3 @@ (function() { | ||
exports.keystrokeForKeyboardEvent = function(event, customKeystrokeResolvers) { | ||
var altKey, characters, code, ctrlKey, customKeystroke, isNonCharacterKey, key, keystroke, metaKey, nonAltModifiedKey, resolver, shiftKey, _i, _len, _ref, _ref1, _ref2; | ||
var altKey, characters, code, ctrlKey, customKeystroke, isNonCharacterKey, key, keystroke, metaKey, nonAltModifiedKey, resolver, shiftKey, _i, _len, _ref, _ref1; | ||
key = event.key, code = event.code, ctrlKey = event.ctrlKey, altKey = event.altKey, shiftKey = event.shiftKey, metaKey = event.metaKey; | ||
@@ -205,11 +205,2 @@ if (key === 'Dead') { | ||
} else { | ||
if (process.platform === 'linux' && ctrlKey) { | ||
if (event.code && (characters = (_ref2 = KeyboardLayout.getCurrentKeymap()) != null ? _ref2[event.code] : void 0)) { | ||
if (event.shiftKey && (characters.withShift != null)) { | ||
key = characters.withShift; | ||
} else if (characters.unmodified != null) { | ||
key = characters.unmodified; | ||
} | ||
} | ||
} | ||
if (event.getModifierState('AltGraph') || (process.platform === 'darwin' && altKey)) { | ||
@@ -216,0 +207,0 @@ if (process.platform === 'darwin' && event.code) { |
{ | ||
"name": "atom-keymap", | ||
"version": "7.1.3-8", | ||
"version": "7.1.3-9", | ||
"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
77567
1912