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

fixed hints

This commit is contained in:
Martin Stubenschrott
2007-04-28 15:39:28 +00:00
parent 4019129519
commit cdcf828bb9
5 changed files with 12 additions and 13 deletions

View File

@@ -524,7 +524,7 @@ var g_mappings = [/*{{{*/
[ [
["gP"], ["gP"],
["gP"], ["gP"],
"Open (put) an URL based on the current Clipboard contents in a new buffer", "Open (put) an URL based on the current clipboard contents in a new buffer",
"Works like <code class=mapping>P</code>, but inverts the <code class=setting>'activate'</code> setting.", "Works like <code class=mapping>P</code>, but inverts the <code class=setting>'activate'</code> setting.",
function(count) { openURLsInNewTab(readFromClipboard(), false); } function(count) { openURLsInNewTab(readFromClipboard(), false); }
], ],
@@ -1969,11 +1969,15 @@ function set(args, special)
function source(filename, silent) function source(filename, silent)
{ {
if (!filename) return; if (!filename)
return;
try try
{ {
var fd = fopen(filename, "<"); var fd = fopen(filename, "<");
if (!fd) return; if (!fd)
return;
var s = fd.read(); var s = fd.read();
fd.close(); fd.close();

View File

@@ -62,6 +62,7 @@ table.vimperator td {\
}\ }\
tr.tag {\ tr.tag {\
text-align: right;\ text-align: right;\
border-spacing: 13px 10px 13px 10px;\
}\ }\
tr.tag td {\ tr.tag td {\
width: 100%;\ width: 100%;\
@@ -75,8 +76,8 @@ td.usage code {\
}\ }\
tr.tag code {\ tr.tag code {\
font-weight: bold;\ font-weight: bold;\
font-size: 1opx;\ font-size: 12px;\
font-color: red;\ color: red;\
margin-left: 2em;\ margin-left: 2em;\
}\ }\
tr.desciption {\ tr.desciption {\

View File

@@ -207,7 +207,7 @@ function hit_a_hint()
offset = off; // must be global without 'var' for recursion offset = off; // must be global without 'var' for recursion
if (!win) if (!win)
win = window._content; win = window.content;
if (linkCount == 0 && hintmode != HINT_MODE_ALWAYS) if (linkCount == 0 && hintmode != HINT_MODE_ALWAYS)
{ {

View File

@@ -127,6 +127,7 @@ var g_settings = [/*{{{*/
["hintchars", "hc"], ["hintchars", "hc"],
["hintchars", "hc"], ["hintchars", "hc"],
"String of single characters which can be used to follow hints", "String of single characters which can be used to follow hints",
null,
"charlist", "charlist",
null, null,
function(value) { set_pref("hintchars", value); }, function(value) { set_pref("hintchars", value); },

View File

@@ -330,7 +330,6 @@ function onVimperatorKeypress(event)/*{{{*/
{ {
// never propagate this key to firefox, when hints are visible // never propagate this key to firefox, when hints are visible
event.preventDefault(); event.preventDefault();
event.preventBubble();
event.stopPropagation(); event.stopPropagation();
for (i = 0; i < g_hint_mappings.length; i++) for (i = 0; i < g_hint_mappings.length; i++)
@@ -452,7 +451,6 @@ function onVimperatorKeypress(event)/*{{{*/
g_inputbuffer = ""; g_inputbuffer = "";
updateStatusbar(); updateStatusbar();
event.preventDefault(); event.preventDefault();
event.preventBubble();
event.stopPropagation(); event.stopPropagation();
return false; return false;
} }
@@ -467,16 +465,12 @@ function onVimperatorKeypress(event)/*{{{*/
{ {
g_inputbuffer += key; g_inputbuffer += key;
event.preventDefault(); event.preventDefault();
event.preventBubble();
event.stopPropagation(); event.stopPropagation();
} }
else else
{ {
g_inputbuffer = ""; g_inputbuffer = "";
beep(); beep();
// event.preventDefault();
// event.preventBubble(); XXX:
// event.stopPropagation();
} }
updateStatusbar(); updateStatusbar();
@@ -669,7 +663,6 @@ function onCommandBarKeypress(evt)/*{{{*/
// prevent tab from moving to the next field // prevent tab from moving to the next field
evt.preventDefault(); evt.preventDefault();
evt.preventBubble();
evt.stopPropagation(); evt.stopPropagation();
} }