adobe/brackets — pull request #937 by peterflynn (2012-05-24 18:35:13+00:00)
Title: Ctrl+Tab to switch editors (MRU order)

Only works on Win for now, pending app shell fix to get modifier keyups on Mac.

DocumentManager maintains an MRU ordering of the working set alongside the existing visible list ordering. It exposes APIs to get the next/previous doc, which DocumentCommandHandlers uses to implement the shortcuts.

One wrinkle: within a string of Ctrl+Tab presses, we want the MRU order to be frozen. If we updated it on each Tab press, you'd never be able to get past the first 2 items in the list (because the 1st & 2nd items in the list would just continually trade places). So, DocumentManager exposes an API to freeze/unfreeze MRU updating, and DocumentCommandHandlers keeps it frozen until the Ctrl key is released.

I also threw in two small cleanups:
* Move the Show Developer Tools menu item handler from DocumentCommandHandlers to DebugCommandHandlers
* Add nicer toString() methods to FileEntry & DirectoryEntry