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
,totalNotifications: 0
}
,xtype : 'application-controller'
,launch: function () {
// Prevent track if the user have disabled this option (default: false)
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);
// Add shortcuts to switch services using CTRL + Number
var map = new Ext.util.KeyMap({
document.keyMapping = new Ext.util.KeyMap({
target: document
,binding: [
{

Loading…
Cancel
Save