Fix focus when navigating the document tabs with Ctrl+Tab

As discussed earlier with tzachs, this fixes Ctrl+Tab when moving between document tabs, but it might be little hacky. I've tested it thoroughly and upon tzachs' recommendation, it also removes the old tabbing code that scanned through panes.