Creates common shortcuts for a window. Requires Mousetrap.js to be declared within the window.
Current shortcuts include the ability to close and refresh windows, as well as open dev tools.
- Copyright:
-
- Waterloo Aerial Robotics Group 2016
- Source:
Example
Usage example
var WindowShortcuts = require('../../app/core/WindowShortcuts');
WindowShortcuts.init(Mousetrap); //we pass in mousetrap in here
Requires
- module:util/Logger
- module:electron
Methods
-
<static> init(Mousetrap)
-
function init
Parameters:
Name Type Description MousetrapObject Reference to the window's Mousetrap object
- Source: