aboutsummaryrefslogtreecommitdiffstats
path: root/background_page.html
diff options
context:
space:
mode:
authorConrad Irwin2010-05-29 16:09:17 +0100
committerPhil Crosby2010-06-01 21:55:55 -0700
commit8893e55daec12693197e4550a75f28885f47760f (patch)
treea47e0d0e6b3d1863471a9b1d521f851850322e7c /background_page.html
parent9d0061dca6101926da760e159d50151984ae24f8 (diff)
downloadvimium-8893e55daec12693197e4550a75f28885f47760f.tar.bz2
Document named key functions (per philc)
Diffstat (limited to 'background_page.html')
-rw-r--r--background_page.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html
index 9e43fecd..0f923869 100644
--- a/background_page.html
+++ b/background_page.html
@@ -15,7 +15,9 @@
var validFirstKeys = {};
var singleKeyCommands = [];
- var namedKeyRegex = /^(<[amc-].|(?:[amc]-)?[a-z]{2,5}>)(.*)$/;
+ // Keys are either literal characters, or "named" - for example <a-b> (alt+b), <left> (the left arrow) or <f12>
+ // This regular expression captures two groups, the first is a named key, the second is the remainder of the string.
+ var namedKeyRegex = /^(<[amc-].|(?:[amc]-)?[a-z0-9]{2,5}>)(.*)$/;
var defaultSettings = {
scrollStepSize: 60,