Browse Source

Shortcuts to switch services

Added shortcuts to switch between services using CTRL + Number.
pull/3/head
saenzramiro 9 years ago
parent
commit
d49a788e26
  1. 10
      app/Application.js

10
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);
}
});
}
});

Loading…
Cancel
Save