Browse Source

Simply allowing keyMap to be accessed from eveywhere

pull/2138/head
mxb 6 years ago
parent
commit
7ee9e1c2ef
  1. 4
      app/Application.js

4
app/Application.js

@ -24,7 +24,7 @@ Ext.define('Rambox.Application', {
totalServicesLoaded: 0 totalServicesLoaded: 0
,totalNotifications: 0 ,totalNotifications: 0
} }
,xtype : 'application-controller'
,launch: function () { ,launch: function () {
// Prevent track if the user have disabled this option (default: false) // Prevent track if the user have disabled this option (default: false)
if ( !ipc.sendSync('sendStatistics') ) { if ( !ipc.sendSync('sendStatistics') ) {
@ -60,7 +60,7 @@ Ext.define('Rambox.Application', {
if ( require('electron').remote.process.argv.indexOf('--without-update') === -1 ) Rambox.app.checkUpdate(true); if ( require('electron').remote.process.argv.indexOf('--without-update') === -1 ) Rambox.app.checkUpdate(true);
// Add shortcuts to switch services using CTRL + Number // Add shortcuts to switch services using CTRL + Number
var map = new Ext.util.KeyMap({ document.keyMapping = new Ext.util.KeyMap({
target: document target: document
,binding: [ ,binding: [
{ {

Loading…
Cancel
Save