Share your code.
Atom's DOM-aware keymap module
var KeymapManager keymaps;KeymapManager =keymaps =keymapsdefaultTarget = documentbody// Pass all the window's keydown events to the KeymapManagerdocument// Add some keymapskeymaps // can also be a directory of json / cson files// ORkeymaps// When a keybinding is triggered, it will dispatch it on the node that was focusedwindowwindow
The tests for this module must be run in Electron because they depend on browser APIs.
devtoolis bundled as a development dependency to run the tests.
- Native modules need to be compiled against the version of Electron included with
devtool. Be sure to run
electron-rebuildbe sure recompile native dependencies before running tests.
- Tests can be run in batch mode with
- If you want to use the debugger, profiler, etc or just speed up your flow by being able to refresh the
devtoolwindow to re-run tests, use the
npm run test-drivescript. This will keep
devtoolopen instead of exiting after the test run.