import { BrowserWindow , globalShortcut } from 'electron' ; export default function ( win ) { globalShortcut . register ( 'MediaNextTrack' , ( ) => { win . webContents . send ( 'player-next' ) ; } ) ; globalShortcut . register ( 'MediaPreviousTrack' , ( ) => { win . webContents . send ( 'player-previous' ) ; } ) ; globalShortcut . register ( 'MediaPlayPause' , ( ) => { win . webContents . send ( 'player-toggle' ) ; } ) ; }