From c3649ada9fb51f09cf4d229a2589955ad96d7413 Mon Sep 17 00:00:00 2001 From: int3 Date: Sat, 17 Apr 2010 10:29:02 +0800 Subject: Add 'goUp' function. However, it does not support command repetition. --- commands.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'commands.js') diff --git a/commands.js b/commands.js index de6ce701..2a180966 100644 --- a/commands.js +++ b/commands.js @@ -95,6 +95,7 @@ function clearKeyMappingsAndSetDefaults() { mapKeyToCommand('H', 'goBack'); mapKeyToCommand('L', 'goForward'); + mapKeyToCommand('gu', 'goUp'); mapKeyToCommand('zi', 'zoomIn'); mapKeyToCommand('zo', 'zoomOut'); @@ -150,6 +151,9 @@ addCommand('performBackwardsFind', 'Cycle backward to the previous find match'); addCommand('goBack', 'Go back in history'); addCommand('goForward', 'Go forward in history'); +// Navigating the URL hierarchy +addCommand('goUp', 'Go up the URL hierarchy'); + // Manipulating tabs: addCommand('nextTab', 'Go one tab right', true); addCommand('previousTab', 'Go one tab left', true); -- cgit v1.2.3