mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 01:34:11 +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
|
||||
],
|
||||
|
||||
|
||||
@@ -733,7 +733,7 @@ function onEscape()
|
||||
if (!hasMode(MODE_ESCAPE_ONE_KEY))
|
||||
{
|
||||
setCurrentMode(MODE_NORMAL);
|
||||
BrowserStop();
|
||||
// BrowserStop(); -> moved to <C-c>
|
||||
hah.disableHahMode();
|
||||
focusContent(true, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user