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

@lumino/keyboard

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lumino/keyboard - npm Package Compare versions

Comparing version 1.5.2 to 1.6.0

2

dist/index.es6.js

@@ -223,3 +223,3 @@ // Copyright (c) Jupyter Development Team.

221: ']',
222: '\''
222: "'"
});

@@ -226,0 +226,0 @@ /**

@@ -229,3 +229,3 @@ (function (global, factory) {

221: ']',
222: '\''
222: "'"
});

@@ -232,0 +232,0 @@ /**

{
"name": "@lumino/keyboard",
"version": "1.5.2",
"version": "1.6.0",
"description": "Lumino Keyboard",

@@ -73,4 +73,3 @@ "homepage": "https://github.com/jupyterlab/lumino",

"access": "public"
},
"gitHead": "79b0d03a9d78fbc7055114bdafbd9d5d531490ce"
}
}

@@ -11,8 +11,6 @@ // Copyright (c) Jupyter Development Team.

/**
* An object which represents an abstract keyboard layout.
*/
export
interface IKeyboardLayout {
export interface IKeyboardLayout {
/**

@@ -56,3 +54,2 @@ * The human readable name of the layout.

/**

@@ -66,8 +63,6 @@ * Get the global application keyboard layout instance.

*/
export
function getKeyboardLayout(): IKeyboardLayout {
export function getKeyboardLayout(): IKeyboardLayout {
return Private.keyboardLayout;
}
/**

@@ -82,8 +77,6 @@ * Set the global application keyboard layout instance.

*/
export
function setKeyboardLayout(layout: IKeyboardLayout): void {
export function setKeyboardLayout(layout: IKeyboardLayout): void {
Private.keyboardLayout = layout;
}
/**

@@ -100,4 +93,3 @@ * A concrete implementation of [[IKeyboardLayout]] based on keycodes.

*/
export
class KeycodeLayout implements IKeyboardLayout {
export class KeycodeLayout implements IKeyboardLayout {
/**

@@ -157,13 +149,10 @@ * Construct a new keycode layout.

/**
* The namespace for the `KeycodeLayout` class statics.
*/
export
namespace KeycodeLayout {
export namespace KeycodeLayout {
/**
* A type alias for a keycode map.
*/
export
type CodeMap = { readonly [code: number]: string };
export type CodeMap = { readonly [code: number]: string };

@@ -173,4 +162,3 @@ /**

*/
export
type KeySet = { readonly [key: string]: boolean };
export type KeySet = { readonly [key: string]: boolean };

@@ -184,4 +172,3 @@ /**

*/
export
function extractKeys(codes: CodeMap): KeySet {
export function extractKeys(codes: CodeMap): KeySet {
let keys: any = Object.create(null);

@@ -195,3 +182,2 @@ for (let c in codes) {

/**

@@ -218,4 +204,3 @@ * A keycode-based keyboard layout for US English keyboards.

*/
export
const EN_US: IKeyboardLayout = new KeycodeLayout('en-us', {
export const EN_US: IKeyboardLayout = new KeycodeLayout('en-us', {
8: 'Backspace',

@@ -247,4 +232,4 @@ 9: 'Tab',

57: '9',
59: ';', // firefox
61: '=', // firefox
59: ';', // firefox
61: '=', // firefox
65: 'A',

@@ -277,17 +262,17 @@ 66: 'B',

93: 'ContextMenu',
96: '0', // numpad
97: '1', // numpad
98: '2', // numpad
99: '3', // numpad
100: '4', // numpad
101: '5', // numpad
102: '6', // numpad
103: '7', // numpad
104: '8', // numpad
105: '9', // numpad
106: '*', // numpad
107: '+', // numpad
109: '-', // numpad
110: '.', // numpad
111: '/', // numpad
96: '0', // numpad
97: '1', // numpad
98: '2', // numpad
99: '3', // numpad
100: '4', // numpad
101: '5', // numpad
102: '6', // numpad
103: '7', // numpad
104: '8', // numpad
105: '9', // numpad
106: '*', // numpad
107: '+', // numpad
109: '-', // numpad
110: '.', // numpad
111: '/', // numpad
112: 'F1',

@@ -305,7 +290,7 @@ 113: 'F2',

123: 'F12',
173: '-', // firefox
186: ';', // non-firefox
187: '=', // non-firefox
173: '-', // firefox
186: ';', // non-firefox
187: '=', // non-firefox
188: ',',
189: '-', // non-firefox
189: '-', // non-firefox
190: '.',

@@ -317,6 +302,5 @@ 191: '/',

221: ']',
222: '\''
222: "'"
});
/**

@@ -329,4 +313,3 @@ * The namespace for the module implementation details.

*/
export
let keyboardLayout = EN_US;
export let keyboardLayout = EN_US;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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