aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
2015-01-20Rework focus input so it can be better included in tests.Stephen Blott
focusInput was getting its focus events from the handler stack. When the handler stack was reset during tests, we lost focusInput's handler. So we couldn't test the feature whereby focusInput has a memory (#1438). Instead, here focusInput adds its listener directly to the window, and we add the approriate test.
2015-01-20Rework DOM tests (clean up).Stephen Blott
2015-01-20Rework DOM tests.Stephen Blott
- Set up modes such that they can be re-initialised. - Move initialisation of BadgeMode to general initialisation function. - Add reset() method for handlerStack. - Consistently use initializeModeState() in all tests' setup(). - Refactor focusInput tests. - Add some more tests. - Simplify some other tests. Note: Clean-up of the inputFocus overlay now happens when the exit() method is called in Mode.reset(). This eliminates most needs to artificially bubble a keyboard event to clear the overlay.
2015-01-20Merge pull request #1438 from smblott-github/focus-input-with-memoryStephen Blott
Give focusInput (gi) a memory
2015-01-19Fix bug in mode_passkeys.Stephen Blott
Caught this while working on the dom_tests infrastructure. Testing works!
2015-01-18Give focusInput a memory (refactor).Stephen Blott
This makes the diff look big, but that's mainly due to a change in the indentation.
2015-01-18Give focusInput a memory (fix typo).Stephen Blott
2015-01-18Merge branch 'master' into focus-input-with-memoryStephen Blott
2015-01-18Modes; refactor permanent instance.Stephen Blott
I had intended the whole Insert.permanentInstance lark to be gone before merging #1413. Somehow, this got missed. It's retained, here, but is only needed for the tests. It gives the tests a hook into the single insert-mode permanent instance, so they can test its state.
2015-01-18Give focusInput a memory (fix typo).Stephen Blott
2015-01-18Merge branch 'master' into focus-input-with-memoryStephen Blott
2015-01-18Modes; fix error for exit insert mode.Stephen Blott
We were blurring the active input element whenever we exit insert mode (my bad). It should only be blurred when we exit insert mode via Escape.
2015-01-18Give focusInput a memory; add tests.Stephen Blott
2015-01-18Give focusInput a memory.Stephen Blott
- Track the most recently-focused input. - When focusInput is launched (with a count of 1) start with the most recently focused input. This does two things: - If the user is editing an element then comes back, they end up back where they started. - It gives focusInput a memory.
2015-01-18Merge pull request #1434 from smblott-github/perform-find-in-placeStephen Blott
Fix slightly wonky perform-find-in-place
2015-01-18Merge pull request #1413 from smblott-github/modesStephen Blott
A modal-browsing framework
2015-01-18Modes; disable debugging output by default.Stephen Blott
2015-01-18Modes; pre-merge clean up.Stephen Blott
2015-01-17Minor rework in link hints.Stephen Blott
2015-01-17Rework modifier key handling for link hints.Stephen Blott
Mainly reduce code duplication.
2015-01-17Make `activateModeWithQueue` support link hint mode modifiersmrmr1993
2015-01-17Re-introduce ctrl, shift keys as link hint mode modifiersmrmr1993
This fixes #1096.
2015-01-17Add comments for performFindInPlace().Stephen Blott
2015-01-17Modes; yet more tweaks...Stephen Blott
- Mainly comments. - Rename chooseBadge to updateBadge (for consistency). - No badge for passkeys; also fix tests.
2015-01-16Instead, just restore the selection, for performFindInPlace().Stephen Blott
2015-01-16Use selection.collapseToStart() for performFindInPlace().Stephen Blott
2015-01-16Modes; clean up.Stephen Blott
2015-01-16Modes; tweaks.Stephen Blott
2015-01-16Modes; refactoring.Stephen Blott
- refactor PostFindMode (to keep separate functionality separated).
2015-01-15Modes; yet more teaks and fiddles.Stephen Blott
2015-01-15Modes; tweaks and fiddles.Stephen Blott
2015-01-14Modes; more reworking.Stephen Blott
2015-01-14Modes; fix tests.Stephen Blott
2015-01-14Modes; rework PostFindMode (again).Stephen Blott
2015-01-14Modes; substantial reworking of insert mode (and friends).Stephen Blott
2015-01-13Modes; temporary commit.Stephen Blott
2015-01-13Modes; temporary commit.Stephen Blott
2015-01-13Modes; enter insert mode if the selection changes.Stephen Blott
See discussion in #1415.
2015-01-13Modes; block all printable keyboard events.Stephen Blott
2015-01-12Modes; hint mode should be an insert-mode blocker...Stephen Blott
Also: - visual-mode template should block insert. - hint mode should exit on click.
2015-01-12Fix race condition on the options page (better still).Stephen Blott
a
2015-01-12Fix race condition on the options page (better).Stephen Blott
Uses document.readyState for all onDOMContentLoaded dependent functions. This should fix the same race condition as #1426 for all cases.
2015-01-12Fix race condition on the options page.Stephen Blott
Fixes #1426.
2015-01-12Modes; (slightly) nicer badge.Stephen Blott
2015-01-12Modes; re-work key suppression for PostFindMode.Stephen Blott
2015-01-11Modes; incorporate link hints.Stephen Blott
2015-01-11Modes; yet more tweaks, yet more tests.Stephen Blott
2015-01-11Modes; tweaks, including more tests.Stephen Blott
2015-01-11Modes; tweek tests.Stephen Blott
2015-01-11Modes; rework debugging support.Stephen Blott