https://github.com/nwutils/nw-dev-keybindings
Open dev tools and refresh keybindings for NW.js
https://github.com/nwutils/nw-dev-keybindings
Last synced: 3 months ago
JSON representation
Open dev tools and refresh keybindings for NW.js
- Host: GitHub
- URL: https://github.com/nwutils/nw-dev-keybindings
- Owner: nwutils
- License: mit
- Created: 2024-01-11T05:06:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-11T06:13:47.000Z (over 1 year ago)
- Last Synced: 2025-02-13T13:52:34.702Z (4 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nw-dev-keybindings
"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
const nwDevKeyBindings = require('nw-dev-keybindings');
nwDevKeyBindings(window);```
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