diff options
author | Nick White <git@njw.me.uk> | 2011-12-12 18:21:50 +0000 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-12-12 18:21:50 +0000 |
commit | 09d374429159c989651f89b127bd7754f3c7202d (patch) | |
tree | 88b4dbe1f5c91ec078cf08e60eb4166d05273ebe | |
parent | 0ec52a8f60366c52e625507f5cdf592e60aaf9c2 (diff) |
Change key binding to alt+r
-rw-r--r-- | INSTALL | 2 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | gecko/chrome/content/simplyread.xul | 2 | ||||
-rw-r--r-- | gecko/install.ttl | 2 | ||||
-rw-r--r-- | keybind.js | 2 |
5 files changed, 4 insertions, 6 deletions
@@ -21,7 +21,7 @@ rsvg) by running: # Surf -To use SimplyRead from surf, and trigger it from ctrl-alt-r, add the +To use SimplyRead from surf, and trigger it from alt+r, add the contents of keybind.js and simplyread.js to script.js: cat keybind.js simplyread.js >> $HOME/.surf/script.js @@ -1,5 +1,4 @@ before 0.8 - chrome keybind firefox xul options as on chromium before 1.0! @@ -15,7 +14,6 @@ make: gzip things in web/ chromium: - change keybind (looks like ctrl-alt-r is now used by chrome, at least on mac) look at content_security_policy to tighten extension manifest lots http://code.google.com/chrome/extensions/trunk/manifest.html#content_security_policy generate appid for use in update xml diff --git a/gecko/chrome/content/simplyread.xul b/gecko/chrome/content/simplyread.xul index 87af5ea..f5efe94 100644 --- a/gecko/chrome/content/simplyread.xul +++ b/gecko/chrome/content/simplyread.xul @@ -3,7 +3,7 @@ <script src="chrome://simplyread/content/viable.js" /> <script src="chrome://simplyread/content/simplyread.js" /> <keyset> - <key id="simplyread" modifiers="control alt" key="r" oncommand="simplyread()" /> + <key id="simplyread" modifiers="alt" key="r" oncommand="simplyread()" /> </keyset> <toolbar id="addon-bar"> <toolbarbutton id="simplyread-btn" image="chrome://simplyread/content/icon.png" label="SimplyRead" oncommand="simplyread()" /> diff --git a/gecko/install.ttl b/gecko/install.ttl index 76afcfc..e65c2a4 100644 --- a/gecko/install.ttl +++ b/gecko/install.ttl @@ -11,7 +11,7 @@ em:maxVersion "10.*" ] ; em:name "SimplyRead"; - em:description "Removes distractions from webpages. Press Ctrl-Alt-r or press the 'sr' button in the addons bar to toggle SimplyRead."; + em:description "Removes distractions from webpages. Press Alt+r or press the 'sr' button in the addons bar to toggle SimplyRead."; em:creator "Nick White"; em:homepageURL "WEBSITE/"; em:updateURL "WEBSITE/gecko-updates.rdf"; @@ -5,6 +5,6 @@ })(); function keybind(e) { - if(e.ctrlKey && e.altKey && String.fromCharCode(e.keyCode) == "R") + if(e.altKey && String.fromCharCode(e.keyCode) == "R") simplyread(); } |