aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel MacDougall2012-04-04 18:23:43 -0700
committerDaniel MacDougall2012-04-04 18:27:54 -0700
commit97127e056a27f8c397e97e7948a66d525e1c6a24 (patch)
treeebbbe97fd7b8254892daa980edafe517c8761d9b
parent0e573d8dabb3fe7c176473b98e5ba6905a6b14af (diff)
downloadvimium-97127e056a27f8c397e97e7948a66d525e1c6a24.tar.bz2
Document 'disableVimium` function
-rw-r--r--vimiumFrontend.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 3ab17227..343a7906 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -200,6 +200,10 @@ function initializeWhenEnabled() {
enterInsertModeIfElementIsFocused();
}
+/*
+ * Used to disable Vimium without needing to reload the page.
+ * This is called if the current page's url is blacklisted using the popup UI.
+ */
function disableVimium() {
document.removeEventListener("keydown", onKeydown, true);
document.removeEventListener("keypress", onKeypress, true);