diff options
| author | Stephen Blott | 2016-10-01 06:21:14 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-10-01 06:25:00 +0100 |
| commit | fb876164338e865144402689b159e4edf35cf777 (patch) | |
| tree | bfcd2a41ed3888a0c975b45e3a6dc86adb1bee1d /tests | |
| parent | 59942281ce88283345a201f1bfaa76b628308472 (diff) | |
| download | vimium-fb876164338e865144402689b159e4edf35cf777.tar.bz2 | |
Fix find-mode hangs.
"/" followed immediately by "i" can hang Vimium.
The problem is that launching find mode is asynchronous (we wait until
the HUD is available). Because normal mode is still active, we can enter
insert mode *before* the find-mode HUD receives the focus.
The result is that we end up in both find mode and insert mode, the HUD
has the focus, but the HUD is in insert mode, so it ignores keyboard
events (including `Escape`).
The only way out is to click the page's body and then type `Escape`.
This commit demonstrates the problem: 7d2b00411eae3293fa4c7b1f61b384c0c495b5a2.
This happens in practice, for example while a busy page is loading.
This commit fixes this by ensuring that find-mode blocks keyboard events
immediately (and synchronously) on launch.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
