summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-12-12 18:21:50 +0000
committerNick White <git@njw.me.uk>2011-12-12 18:21:50 +0000
commit09d374429159c989651f89b127bd7754f3c7202d (patch)
tree88b4dbe1f5c91ec078cf08e60eb4166d05273ebe
parent0ec52a8f60366c52e625507f5cdf592e60aaf9c2 (diff)
Change key binding to alt+r
-rw-r--r--INSTALL2
-rw-r--r--TODO2
-rw-r--r--gecko/chrome/content/simplyread.xul2
-rw-r--r--gecko/install.ttl2
-rw-r--r--keybind.js2
5 files changed, 4 insertions, 6 deletions
diff --git a/INSTALL b/INSTALL
index 44944a6..8af421f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -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
diff --git a/TODO b/TODO
index 9a56c67..8dc1cac 100644
--- a/TODO
+++ b/TODO
@@ -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";
diff --git a/keybind.js b/keybind.js
index 060d8f2..9d1f702 100644
--- a/keybind.js
+++ b/keybind.js
@@ -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();
}