From d49a788e26dc59183f651cb72cdd8b8a3539f97e Mon Sep 17 00:00:00 2001 From: saenzramiro Date: Tue, 10 May 2016 18:41:32 -0300 Subject: [PATCH] Shortcuts to switch services Added shortcuts to switch between services using CTRL + Number. --- app/Application.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/Application.js b/app/Application.js index 41a4cb5c..ab41cd40 100644 --- a/app/Application.js +++ b/app/Application.js @@ -13,6 +13,14 @@ Ext.define('Rambox.Application', { } ,launch: function () { - + // Add shortcuts to switch services using CTRL + Number + var map = new Ext.util.KeyMap({ + target: document + ,key: "0123456789" + ,ctrl: true + ,fn: function(key) { + Ext.cq1('app-main').setActiveTab(key - 48); + } + }); } });