summaryrefslogtreecommitdiff
path: root/common/content
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2011-06-12 14:11:23 +1000
committerDoug Kearns <dougkearns@gmail.com>2011-06-12 14:11:23 +1000
commita6f141722066029caa187d0f6663b0835f0fdfdf (patch)
tree08b4e845cab8ae993f46f92c37ce661d24af5e6f /common/content
parent3cc9ce2f8c6ad0053ac9c63cba2aa8ba18bf8bfc (diff)
downloadpentadactyl-a6f141722066029caa187d0f6663b0835f0fdfdf.tar.gz
Add <scroll-{top,bottom}> map aliases.
Diffstat (limited to 'common/content')
-rw-r--r--common/content/buffer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js
index 0bd9e7e2..e073e317 100644
--- a/common/content/buffer.js
+++ b/common/content/buffer.js
@@ -1662,12 +1662,12 @@ var Buffer = Module("buffer", {
"Scroll to the absolute right of the document",
function () { buffer.scrollToPercent(100, null); });
- mappings.add([modes.COMMAND], ["gg", "<Home>"],
+ mappings.add([modes.COMMAND], ["gg", "<Home>", "<scroll-top>"],
"Go to the top of the document",
function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 0); },
{ count: true });
- mappings.add([modes.COMMAND], ["G", "<End>"],
+ mappings.add([modes.COMMAND], ["G", "<End>", "<scroll-bottom>"],
"Go to the end of the document",
function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 100); },
{ count: true });