aboutsummaryrefslogtreecommitdiffstats
path: root/linkHints.js
diff options
context:
space:
mode:
authorJez Ng2012-01-19 03:07:12 +0800
committerJez Ng2012-01-19 03:13:07 +0800
commitc522ba2e6b624e0c4364034a64605d4367f06d7b (patch)
tree06e8e5da54ed1a6ea63353943cf4825e50a10d97 /linkHints.js
parent469acff29be41e60eb8e1c24f007d435711d2b50 (diff)
downloadvimium-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.js7
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();
},
/*