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:
@@ -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><I></code>), <code class=mapping><C-v></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
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user