From 7ee9e1c2efdd58c9f52b8e01810a8ed2c2f94dd7 Mon Sep 17 00:00:00 2001 From: mxb Date: Fri, 15 Mar 2019 20:09:18 +0100 Subject: [PATCH] Simply allowing keyMap to be accessed from eveywhere --- app/Application.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Application.js b/app/Application.js index 23138070..a095352f 100644 --- a/app/Application.js +++ b/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: [ {