From 4dbbfa05adccd4ba59f028edf583b79f77ae22d1 Mon Sep 17 00:00:00 2001 From: Wallace Breza Date: Fri, 1 Feb 2019 16:48:02 -0800 Subject: [PATCH] Reved package version and fixed minor bugs (#525) --- package.json | 2 +- src/electron/main.ts | 3 --- .../common/keyboardManager/keyboardRegistrationManager.ts | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5fa81caee8..0fc5a7ddaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vott-react-typescript", - "version": "0.1.0", + "version": "2.0.0-preview.1", "private": true, "main": "build/main.js", "dependencies": { diff --git a/src/electron/main.ts b/src/electron/main.ts index 467443ed19..535b0c308a 100644 --- a/src/electron/main.ts +++ b/src/electron/main.ts @@ -30,9 +30,6 @@ function createWindow() { mainWindow.loadFile("build/index.html"); } - // Open the DevTools. - mainWindow.webContents.openDevTools(); - // Emitted when the window is closed. mainWindow.on("closed", () => { // Dereference the window object, usually you would store windows diff --git a/src/react/components/common/keyboardManager/keyboardRegistrationManager.ts b/src/react/components/common/keyboardManager/keyboardRegistrationManager.ts index a401fcbf78..7852a30c46 100644 --- a/src/react/components/common/keyboardManager/keyboardRegistrationManager.ts +++ b/src/react/components/common/keyboardManager/keyboardRegistrationManager.ts @@ -24,7 +24,7 @@ export class KeyboardRegistrationManager { * @param handler The keyboard event handler */ public addHandler(keyCode: string, handler: KeyboardEventHandler): () => void { - Guard.emtpy(keyCode); + Guard.null(keyCode); Guard.null(handler); let keyRegistrations: KeyboardEventHandler[] = this.registrations[keyCode]; @@ -46,7 +46,7 @@ export class KeyboardRegistrationManager { * @param keyCode The key code combination, ex) Ctrl+1 */ public getHandlers(keyCode: string) { - Guard.emtpy(keyCode); + Guard.null(keyCode); const registrations = this.registrations[keyCode]; return registrations ? [...registrations] : []; @@ -58,7 +58,7 @@ export class KeyboardRegistrationManager { * @param evt The keyboard event that was raised */ public invokeHandlers(keyCode: string, evt: KeyboardEvent) { - Guard.emtpy(keyCode); + Guard.null(keyCode); Guard.null(evt); const handlers = this.getHandlers(keyCode);