diff options
author | Mason Larobina <mason.larobina@gmail.com> | 2009-12-13 21:28:12 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2009-12-13 21:28:12 +0800 |
commit | 77e2678988494be1146ab6141f547fa64b8401b7 (patch) | |
tree | 33933ba373b55a8182d619cc7d15537b61d27aa1 /examples/data/uzbl/scripts/follow_Numbers.js | |
parent | 00de6ef299fb3aedc8a0dc56a799e547f481dd68 (diff) |
Clear the keycmd after link follow.
Diffstat (limited to 'examples/data/uzbl/scripts/follow_Numbers.js')
-rw-r--r-- | examples/data/uzbl/scripts/follow_Numbers.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/data/uzbl/scripts/follow_Numbers.js b/examples/data/uzbl/scripts/follow_Numbers.js index efde4d7..00b279e 100644 --- a/examples/data/uzbl/scripts/follow_Numbers.js +++ b/examples/data/uzbl/scripts/follow_Numbers.js @@ -17,6 +17,10 @@ var doc = document; var win = window; var links = document.links; var forms = document.forms; + +//Reset keycmd, modcmd and return to default mode. +function clearKeycmd() { Uzbl.run('set mode ='); } + //Make onlick-links "clickable" try { HTMLElement.prototype.click = function() { @@ -123,6 +127,7 @@ function generateHint(el, label) { //but at least set the href of the link. (needs some improvements) function clickElem(item) { removeAllHints(); + clearKeycmd(); if (item) { var name = item.tagName; if (name == 'A') { |