Created
October 23, 2010 10:20
-
-
Save hyagni/642035 to your computer and use it in GitHub Desktop.
change navigation bar color with caret-browse mode in keysnail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setViewKey(['C-c', 'C-a'], function (ev) { | |
children = document.getElementById("nav-bar").children; | |
for(i=0; i<children.length; i++){ | |
children[i].style.backgroundColor = "pink"; | |
} | |
util.setBoolPref("accessibility.browsewithcaret", true); | |
}, "Start Caret-Browse Mode"); | |
key.setCaretKey(['C-c', 'C-a'], function (ev) { | |
children = document.getElementById("nav-bar").children; | |
for(i=0; i<children.length; i++){ | |
children[i].style.backgroundColor = "transparent"; | |
} | |
util.setBoolPref("accessibility.browsewithcaret", false); | |
}, "Exit Caret-Browse Mode"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment