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

Added Ctrl-[ alias, and 's' guioption

This commit is contained in:
Martin Stubenschrott
2007-04-16 23:31:55 +00:00
parent 6797ee2cfb
commit 849789d23d
9 changed files with 13 additions and 7 deletions

View File

@@ -1,6 +1,9 @@
<pre> <pre>
date: date:
* version 0.3 * version 0.3
* fixed :tabnext/:tabprevious commands
* documented 's' guioptions flag for statusbar
* implemented the possibility to use CTRL-[ as an alternative to ESC, to leave the command line
11/04/2007: 11/04/2007:
* version 0.2 * version 0.2

0
Contributors Normal file
View File

1
Donators Normal file
View File

@@ -0,0 +1 @@
* Andrew Pantyukhin

1
TODO
View File

@@ -37,6 +37,7 @@ FEATURES:
6 gf = view source? 6 gf = view source?
6 make a real one-tab-mode, divert _all_ other targets, possible by setting a firefox option (set popup=0-3) 6 make a real one-tab-mode, divert _all_ other targets, possible by setting a firefox option (set popup=0-3)
6 Shift-Insert in textboxes pastes clipboard contents 6 Shift-Insert in textboxes pastes clipboard contents
5 Use arrow keys in preview window
5 make use of the ] and [ keys to e.g. jump to the next heading ]], next image ]i, previous textbox [t and so on 5 make use of the ] and [ keys to e.g. jump to the next heading ]], next image ]i, previous textbox [t and so on
5 add tag support to adding/deleting bookmarks 5 add tag support to adding/deleting bookmarks
4 Support multiple top-level windows? 4 Support multiple top-level windows?

View File

@@ -19,5 +19,5 @@ fi
if [ x$1 = xtest ]; then if [ x$1 = xtest ]; then
cp -v chrome/vimperator.jar '/home/test/.mozilla/firefox/trsj6obw.default//extensions/{f9570b26-e246-4753-9b68-61aa95994237}/chrome' cp -v chrome/vimperator.jar '/home/test/.mozilla/firefox/7ij36ukn.default/extensions/{f9570b26-e246-4753-9b68-61aa95994237}/chrome'
fi fi

View File

@@ -634,7 +634,7 @@ var g_mappings = [/*{{{*/
function(count) { openVimperatorBar(null); } function(count) { openVimperatorBar(null); }
], ],
[ [
["<Esc>"], ["<Esc>", "<C-[>"],
"Cancel any operation", "Cancel any operation",
"Stops loading the current webpage and exits any command line or hint mode.<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.", "Also focuses the web page, in case a form field has focus, and eats our key presses.",

View File

@@ -110,7 +110,7 @@ var g_settings = [/*{{{*/
[ [
["guioptions", "go"], ["guioptions", "go"],
"Shows or hides the menu, toolbar and scrollbars", "Shows or hides the menu, toolbar and scrollbars",
"Supported characters:<br><ul><li><b>m</b>: menubar</li><li><b>T</b>: toolbar</ul>", "Supported characters:<br><ul><li><b>m</b>: menubar</li><li><b>T</b>: toolbar<li><b>b</b>: bookmark bar</li><li><b>s</b>: original Firefox statusbar</ul>",
function(value) { set_pref("guioptions", value); set_guioptions(value); }, function(value) { set_pref("guioptions", value); set_guioptions(value); },
function() { return get_pref("guioptions"); }, function() { return get_pref("guioptions"); },
"charlist", "charlist",
@@ -334,8 +334,8 @@ function set_guioptions(value)
document.getElementById("PersonalToolbar").collapsed = value.indexOf("b") > -1 ? false : true; document.getElementById("PersonalToolbar").collapsed = value.indexOf("b") > -1 ? false : true;
document.getElementById("PersonalToolbar").hidden = value.indexOf("b") > -1 ? false : true; document.getElementById("PersonalToolbar").hidden = value.indexOf("b") > -1 ? false : true;
// and original status bar (default), but show it, e.g. when needed for extensions // and original status bar (default), but show it, e.g. when needed for extensions
document.getElementById("status-bar").collapsed = value.indexOf("S") > -1 ? false : true; document.getElementById("status-bar").collapsed = value.indexOf("s") > -1 ? false : true;
document.getElementById("status-bar").hidden = value.indexOf("S") > -1 ? false : true; document.getElementById("status-bar").hidden = value.indexOf("s") > -1 ? false : true;
} }
function set_showtabline(value) function set_showtabline(value)

View File

@@ -496,7 +496,6 @@ function onCommandBarKeypress(evt)/*{{{*/
else else
special = false; special = false;
/* user pressed ENTER to carry out a command */ /* user pressed ENTER to carry out a command */
if (evt.keyCode == KeyEvent.DOM_VK_RETURN) if (evt.keyCode == KeyEvent.DOM_VK_RETURN)
{ {
@@ -507,7 +506,8 @@ function onCommandBarKeypress(evt)/*{{{*/
execute_command(count, cmd, special, args); execute_command(count, cmd, special, args);
} }
else if (evt.keyCode == KeyEvent.DOM_VK_ESCAPE) else if ((evt.keyCode == KeyEvent.DOM_VK_ESCAPE) ||
(keyToString(evt) == "<C-[>"))
{ {
add_to_command_history(command); add_to_command_history(command);
focusContent(true, true); focusContent(true, true);

View File

@@ -88,6 +88,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
<keyset id="mainKeyset"> <keyset id="mainKeyset">
<key id="key_open_vimbar" key=":" oncommand="openVimperatorBar();" modifiers=""/> <key id="key_open_vimbar" key=":" oncommand="openVimperatorBar();" modifiers=""/>
<key id="key_stop" keycode="VK_ESCAPE" oncommand="onEscape();"/> <key id="key_stop" keycode="VK_ESCAPE" oncommand="onEscape();"/>
<!--key id="key_cancel" keycode="[" modifiers="control" oncommand="onEscape();"/-->
<!-- other keys are handled inside vimperator.js event loop --> <!-- other keys are handled inside vimperator.js event loop -->
</keyset> </keyset>