Fix bug #1627 ("Go to Definition" prepopulated text doesn't work when
activated via menu) -- There are two problems at play. First, smart-autocomplete
only listens for key events, not programmatic or other textfield changes,
so we need to kick it to generate results for the prepopulated text.

Second, the results are generated asynchronously while QuickOpen's auto-"focus"
is synchronous. That bug is not fixed here since it's related to a whole
tangle of async issues in #1855.

Fixing the first bug alone means that hitting Enter now goes to the correct
result (instead of doing nothing), but that the editor doesn't auto-scroll
to that result as soon as the search bar is opened.

This commit also cleans up QuickOpen to use KeyEvent consts for key codes.
* Simplify command name:
  Delete Selected Line(s)  ->  Delete Line(s)
* Fix several bugs in JSDoc type annotations
* Add WinXP instructions as a comment inside setup_for_hacking.bat
Get the html tag name from token.state.html for php documents, not from token.state.htmlState.
Safer focusedEditorChanged event:
* Revert main-editor-swapping codepath back to how it used to work, mostly
disentangled from focus events.
* Don't fire focusedEditorChanged on the many times focus returns to the
same Editor that had it last (due to window reactivation, closing a dialog,
closing a search bar, etc.). All the current use cases for this event don't
care about those cases. Add more detailed docs on event cases.
* Simplify how Editor signals focus: trigger only from "onFocus" (a superset
of the other case), and remove _internalFocus flag that was guarding against
the overlap.
* Don't call resizeEditor() on every editor swap just because statusbar
*might* have been shown/hidden: only call when statusbar actually did
change (going to/from no editor). Fixes scrolling issue in #1864.

#1257 still isn't 100% fixed: there are at least two cases where getFocusedEditor()
lags behind the focusedEditorChanged event: opening an inline editor; and
moving focus from open inline editor to its host editor. These same cases -
and a number of others - were broken before this change, however.
Update CodeMirror SHA
Code review fix: focusedEditorChange was passing wrong last arg to its
listeners.
And add a couple more docs.
Code review fix: move XP-specific setup_for_hacking instructions into XP
error message that the script prints, and move check for missing argument
before XP check to ensure that XP message doesn't print misleading paths.
Merge pull request #1877 from adobe/refs/heads/pflynn/focusedEditorChange

Safer focusedEditorChanged event
Merge pull request #1875 from adobe/rlim/code-hints-for-php

Get the html tag name from token.state.html for php documents
Merge pull request #1864 from adobe/pflynn/issue-1627

Fix bug #1627 ("Go to Definition" prepopulated text doesn't work via menu)
Merge pull request #1866 from adobe/pflynn/cleanups

Tweak label, plus small docs fixes
Fix the live preview unit test failure on Mac 10.6
Revert "Fixes #510: Middle-click in inline editor's chrome scrolls view & breaks editor"
This reverts commits b07a892 & its follow-up 57cc31c.

This was causing bugs with focusing/clicking in input fields: #1883 and #1794.
Merge pull request #1884 from adobe/pflynn/fix-click-focus

Fix #1883 (Can't type into text input fields in extentions)
Comment out failing unit test due to possible async issues with DOMAgent
Merge pull request #1882 from adobe/rlim/live-preview-unit-test

Fix the live preview unit test failure on Mac 10.6