diff options
| author | Jez Ng | 2012-01-19 03:07:12 +0800 |
|---|---|---|
| committer | Jez Ng | 2012-01-19 03:13:07 +0800 |
| commit | c522ba2e6b624e0c4364034a64605d4367f06d7b (patch) | |
| tree | 06e8e5da54ed1a6ea63353943cf4825e50a10d97 /linkHints.js | |
| parent | 469acff29be41e60eb8e1c24f007d435711d2b50 (diff) | |
| download | vimium-c522ba2e6b624e0c4364034a64605d4367f06d7b.tar.bz2 | |
bubbleEvent should manage the native event propagation.
If the handlers do not want it bubbled up the internal stack, we can
safely assume that they do not want it bubbled up the native stack as
well.
This fixes some problems e.g. with Google search pages.
Diffstat (limited to 'linkHints.js')
| -rw-r--r-- | linkHints.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/linkHints.js b/linkHints.js index f603add8..ce5b80ed 100644 --- a/linkHints.js +++ b/linkHints.js @@ -181,13 +181,10 @@ var linkHints = { this.showMarker(linksMatched[i], this.markerMatcher.hintKeystrokeQueue.length); } } - - event.stopPropagation(); - event.preventDefault(); }, onKeyPressInMode: function(event) { - return !this.delayMode; + return false; }, onKeyUpInMode: function(event) { @@ -199,8 +196,6 @@ var linkHints = { this.setOpenLinkMode(!this.shouldOpenInNewTab, this.shouldOpenWithQueue, false); this.openLinkModeToggle = false; } - event.stopPropagation(); - event.preventDefault(); }, /* |
