Fix several typos and grammar errors
This commit is contained in:
parent
8aa815e6d1
commit
13b6ed6dc5
5 changed files with 6 additions and 6 deletions
|
@ -753,7 +753,7 @@ Calling `event.preventDefault()` can prevent creating new windows.
|
||||||
Emitted when user or the page wants to start an navigation, it can happen when
|
Emitted when user or the page wants to start an navigation, it can happen when
|
||||||
`window.location` object is changed or user clicks a link in the page.
|
`window.location` object is changed or user clicks a link in the page.
|
||||||
|
|
||||||
This event will not emit when the navigation is started programmely with APIs
|
This event will not emit when the navigation is started programmatically with APIs
|
||||||
like `WebContents.loadUrl` and `WebContents.back`.
|
like `WebContents.loadUrl` and `WebContents.back`.
|
||||||
|
|
||||||
Calling `event.preventDefault()` can prevent the navigation.
|
Calling `event.preventDefault()` can prevent the navigation.
|
||||||
|
|
|
@ -28,7 +28,7 @@ var win = new BrowserWindow({ transparent: true, frame: false });
|
||||||
API to set window shape to solve this, but currently blocked at an
|
API to set window shape to solve this, but currently blocked at an
|
||||||
[upstream bug](https://code.google.com/p/chromium/issues/detail?id=387234).
|
[upstream bug](https://code.google.com/p/chromium/issues/detail?id=387234).
|
||||||
* Transparent window is not resizable, setting `resizable` to `true` may make
|
* Transparent window is not resizable, setting `resizable` to `true` may make
|
||||||
transprent window stop working on some platforms.
|
transparent window stop working on some platforms.
|
||||||
* The `blur` filter only applies to the web page, so there is no way to apply
|
* The `blur` filter only applies to the web page, so there is no way to apply
|
||||||
blur effect to the content below the window.
|
blur effect to the content below the window.
|
||||||
* On Windows transparent window will not work when DWM is disabled.
|
* On Windows transparent window will not work when DWM is disabled.
|
||||||
|
|
|
@ -10,7 +10,7 @@ var globalShortcut = require('global-shortcut');
|
||||||
// Register a 'ctrl+x' shortcut listener.
|
// Register a 'ctrl+x' shortcut listener.
|
||||||
var ret = globalShortcut.register('ctrl+x', function() { console.log('ctrl+x is pressed'); })
|
var ret = globalShortcut.register('ctrl+x', function() { console.log('ctrl+x is pressed'); })
|
||||||
if (!ret)
|
if (!ret)
|
||||||
console.log('registerion fails');
|
console.log('registration failed');
|
||||||
|
|
||||||
// Check whether a shortcut is registered.
|
// Check whether a shortcut is registered.
|
||||||
console.log(globalShortcut.isRegistered('ctrl+x'));
|
console.log(globalShortcut.isRegistered('ctrl+x'));
|
||||||
|
|
|
@ -35,7 +35,7 @@ exposing your app's source code to users.
|
||||||
|
|
||||||
To use an `asar` archive to replace the `app` folder, you need to rename the
|
To use an `asar` archive to replace the `app` folder, you need to rename the
|
||||||
archive to `app.asar`, and put it under Electron's resources directory like
|
archive to `app.asar`, and put it under Electron's resources directory like
|
||||||
bellow, and Electron will then try read the archive and start from it.
|
below, and Electron will then try read the archive and start from it.
|
||||||
|
|
||||||
On OS X:
|
On OS X:
|
||||||
|
|
||||||
|
|
|
@ -149,8 +149,8 @@ On Windows, a taskbar button can be used to display a progress bar. This enables
|
||||||
a window to provide progress information to the user without that user having to
|
a window to provide progress information to the user without that user having to
|
||||||
switch to the window itself.
|
switch to the window itself.
|
||||||
|
|
||||||
The Unity DE also has a simililar feature that allows you to specify progress
|
The Unity DE also has a similar feature that allows you to specify the progress
|
||||||
bar in the lancher.
|
bar in the launcher.
|
||||||
|
|
||||||
__Progress bar in taskbar button:__
|
__Progress bar in taskbar button:__
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue