electron-prompt
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -36,7 +36,7 @@ const electron = require('electron'); | ||
resizable: opts.resizable, | ||
parent: parentWindow instanceof BrowserWindow ? parentWindow : null, | ||
parent: parentWindow, | ||
skipTaskbar: true, | ||
alwaysOnTop: opts.alwaysOnTop, | ||
useContentSize: true, | ||
modal: Boolean(parentWindow instanceof BrowserWindow), | ||
modal: Boolean(parentWindow), | ||
title: opts.title, | ||
@@ -43,0 +43,0 @@ icon: opts.icon |
@@ -81,2 +81,5 @@ const {ipcRenderer} = require('electron'); | ||
} | ||
if (e.which === 27) { | ||
promptCancel(); | ||
} | ||
}); | ||
@@ -106,2 +109,5 @@ } else if (promptOptions.type === 'select') { | ||
dataEl.focus(); | ||
if (promptOptions.type === 'input') { | ||
dataEl.select(); | ||
} | ||
}); |
{ | ||
"name": "electron-prompt", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Electron helper to prompt for a value via input or select", | ||
@@ -11,9 +11,9 @@ "keywords": [ | ||
"author": { | ||
"name": "sperrichon", | ||
"email": "sperrichon@users.noreply.github.com", | ||
"url": "https://github.com/sperrichon" | ||
"name": "p-sam", | ||
"email": "p-sam@users.noreply.github.com", | ||
"url": "https://github.com/p-sam" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/sperrichon/electron-prompt.git" | ||
"url": "https://github.com/p-sam/electron-prompt.git" | ||
}, | ||
@@ -20,0 +20,0 @@ "license": "MIT", |
@@ -5,3 +5,3 @@ # electron-prompt | ||
[![Build Status](https://travis-ci.com/sperrichon/electron-prompt.svg?branch=master)](https://travis-ci.com/sperrichon/electron-prompt) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) | ||
[![Build Status](https://travis-ci.com/p-sam/electron-prompt.svg?branch=master)](https://travis-ci.com/p-sam/electron-prompt) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) | ||
@@ -8,0 +8,0 @@ ## Usage |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10280
234
1