-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b5b87d
commit 26524be
Showing
4 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# nw-dev-keybindings | ||
Open dev tools and refresh keybindings for NW.js | ||
|
||
"Open dev tools" and "refresh page" keybindings for NW.js. | ||
|
||
Skips creating bindings if you are not on the SDK version. | ||
|
||
Written in glorius ES5 (that means it runs in all version of NW.js, even super old ones). | ||
|
||
|
||
## Usage | ||
|
||
1. `npm install --save nw-dev-keybindings` | ||
1. Add this to your HTML file: | ||
|
||
```html | ||
<script> | ||
const nwDevKeyBindings = require('nw-dev-keybindings'); | ||
nwDevKeyBindings(window); | ||
</script> | ||
``` | ||
|
||
|
||
Then, if you are in the SDK version of NW.js, you'll be able to run these commands: | ||
|
||
Key binding | Outcome | ||
:-- | :-- | ||
`F5` | Soft refresh | ||
`Shift+F5` | Refresh ignoring cache | ||
`Command+Shift+R` | Refresh ignoring cache | ||
`Ctrl+F5` | Hard refresh | ||
`Ctrl+R` | Hard refresh | ||
`Command+R` | Hard refresh | ||
`F12` | Open Dev Tools | ||
`Ctrl+Shift+I` | Open Dev Tools | ||
`Option+Shift+I` | Open Dev Tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "nw-dev-keybindings", | ||
"version": "1.0.0", | ||
"description": "Open dev tools and refresh keybindings for NW.js", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nwutils/nw-dev-keybindings.git" | ||
}, | ||
"keywords": [ | ||
"NW.js", | ||
"dev", | ||
"tools", | ||
"shortcuts", | ||
"key", | ||
"binding", | ||
"tooling" | ||
], | ||
"author": "The Jared Wilcurt", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/nwutils/nw-dev-keybindings/issues" | ||
}, | ||
"homepage": "https://github.com/nwutils/nw-dev-keybindings#readme" | ||
} |