diff options
| author | Stephen Blott | 2015-06-17 07:06:23 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-06-17 07:06:23 +0100 |
| commit | b7e13a1c2712ed76a299d4d28597197593556b66 (patch) | |
| tree | db1dfd7b026e182ad19a37e4147eaf7d167c91ca /git_hooks/pre-commit | |
| parent | aa00e29dc2533b6701c65935223599671c5833b1 (diff) | |
| download | vimium-b7e13a1c2712ed76a299d4d28597197593556b66.tar.bz2 | |
Initialise modes and install listeners at the same time.
Previously, we initialised modes early, but then installed our listeners
only after DOM ready, and then only after we'd heard back from the
background page in `checkIfEnabledForUrl`. This creates a gap during
which modes are installed, but they're not receiving events.
If an input is focused during that gap, then we don't pick it up when
the modes are installed, and we don't pick it up when the input is
focussed (because we're not listening). This commit moves these two
initialisation steps together, so they happen at the same time and there
is no gap.
Fixes #1738.
Diffstat (limited to 'git_hooks/pre-commit')
0 files changed, 0 insertions, 0 deletions
