B2G/gecko/browser/base/content/browser-tabview.js
// and for switching between groups of tabs when outside of the Tab Candy UI.
and for switching between groups of tabs when outside of the Tab Candy UI.
and for switching between groups of tabs when outside of the Tab Candy UI .
function TabView__setBrowserKeyHandlers() {
    if (this._browserKeyHandlerInitialized)
      return;
    this._browserKeyHandlerInitialized = true;
    let self = this;
    window.addEventListener("keypress", function(event) {
      if (self.isVisible() || !self._tabBrowserHasHiddenTabs())
        return;
      let charCode = event.charCode;
      if (event.ctrlKey && !event.metaKey && !event.altKey &&
          (charCode == 96 || charCode == 126)) {
        event.stopPropagation();
        event.preventDefault();
        self._initFrame(function() {
          let groupItems = self._window.GroupItems;
          let tabItem = groupItems.getNextGroupItemTab(event.shiftKey);
          if (!tabItem)
            return;
          if (gBrowser.selectedTab.pinned)
            groupItems.updateActiveGroupItemAndTabBar(tabItem, {dontSetActiveTabInGroup: true});
          else
            gBrowser.selectedTab = tabItem.tab;
        });
      }
    }, true);
  }
function TabView__setBrowserKeyHandlers ( ) { if ( this . _browserKeyHandlerInitialized ) return ; this . _browserKeyHandlerInitialized = true ; let self = this ; window . addEventListener ( "keypress" , function ( event ) { if ( self . isVisible ( ) || ! self . _tabBrowserHasHiddenTabs ( ) ) return ; let charCode = event . charCode ; if ( event . ctrlKey && ! event . metaKey && ! event . altKey && ( charCode == 96 || charCode == 126 ) ) { event . stopPropagation ( ) ; event . preventDefault ( ) ; self . _initFrame ( function ( ) { let groupItems = self . _window . GroupItems ; let tabItem = groupItems . getNextGroupItemTab ( event . shiftKey ) ; if ( ! tabItem ) return ; if ( gBrowser . selectedTab . pinned ) groupItems . updateActiveGroupItemAndTabBar ( tabItem , { dontSetActiveTabInGroup : true } ) ; else gBrowser . selectedTab = tabItem . tab ; } ) ; } } , true ) ; }
and for switching between groups of tabs when outside of the Tab Candy UI.
and for switching between groups of tabs when outside of the Tab Candy UI .
// Control (+ Shift) + `