Module: core/WindowShortcuts

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.

Author:
  • Serge Babayan
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
Mousetrap Object

Reference to the window's Mousetrap object

Source: