1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 14:18:00 +01:00

esc -> C-c to stop page

:stop command added
This commit is contained in:
Martin Stubenschrott
2007-04-24 21:06:57 +00:00
parent a98f9fd379
commit dc0af86c32
4 changed files with 24 additions and 6 deletions

View File

@@ -326,6 +326,14 @@ var g_commands = [/*{{{*/
source,
function (filter) { return get_file_completions(filter); }
],
[
["stop", "st"],
["st[op]"],
"Stop loading<br/>" +
"Stop loading current web page.",
BrowserStop,
null
],
[
["tab"],
["tab {cmd}"],
@@ -830,12 +838,19 @@ var g_mappings = [/*{{{*/
"When in 'ignorekeys' mode (activated by <code class=mapping>&lt;I&gt;</code>), <code class=mapping>&lt;C-v&gt;</code> will pass the next key to Vimperator instead of the webpage.",
function(count) { addMode(MODE_ESCAPE_ONE_KEY); }
],
[
["<C-c>"],
["<C-c>"],
"Stop loading<br/>" +
"Stops loading the current webpage.",
BrowserStop,
],
[
["<Esc>", "<C-[>"], // if you ever add/remove keys here, also check them in the onVimperatorKeypress() function
["<Esc>", "<C-[>"],
"Cancel any operation<br/>" +
"Stops loading the current webpage and exits any command line or hint mode.<br/>"+
"Also focuses the web page, in case a form field has focus, and eats our key presses.",
"Exits any command line or hint mode and returns to browser mode.<br/>"+
"Also focuses the web page, in case a form field has focus and eats our key presses.",
onEscape
],