From 7b553362bac1b43924024b3c5c3bb0c3de8da617 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Fri, 23 Sep 2016 16:45:22 -0300 Subject: [PATCH] Fixed shortcut Ctrl + {Number} shows white page. --- app/Application.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Application.js b/app/Application.js index e3380485..1be9f4e6 100644 --- a/app/Application.js +++ b/app/Application.js @@ -93,7 +93,9 @@ Ext.define('Rambox.Application', { ,ctrl: true ,alt: false ,handler: function(key) { - Ext.cq1('app-main').setActiveTab(key - 48); + key = key - 48; + if ( key >= Ext.cq1('app-main').items.indexOf(Ext.getCmp('tbfill')) ) key++; + Ext.cq1('app-main').setActiveTab(key); } } ,{