mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:17:59 +01:00
added visualbellstyle (don't think it works on GTK at least)
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,6 +1,7 @@
|
|||||||
<pre>
|
<pre>
|
||||||
2008-05-14:
|
2008-05-14:
|
||||||
* version 1.1
|
* version 1.1
|
||||||
|
* readded visualbellstyle (thanks mauke)
|
||||||
* new popups=4 option
|
* new popups=4 option
|
||||||
|
|
||||||
2008-05-14:
|
2008-05-14:
|
||||||
|
|||||||
@@ -100,6 +100,11 @@ const liberator = (function () //{{{
|
|||||||
{
|
{
|
||||||
setter: function (value) { liberator.options.setPref("accessibility.typeaheadfind.enablesound", !value); },
|
setter: function (value) { liberator.options.setPref("accessibility.typeaheadfind.enablesound", !value); },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
liberator.options.add(["visualbellstyle", "t_vb"],
|
||||||
|
"CSS specification of the visual bell",
|
||||||
|
"string", "border: none; background-color: black;"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function addMappings()
|
function addMappings()
|
||||||
@@ -447,15 +452,20 @@ const liberator = (function () //{{{
|
|||||||
{
|
{
|
||||||
if (liberator.options["visualbell"])
|
if (liberator.options["visualbell"])
|
||||||
{
|
{
|
||||||
// flash the visual bell
|
var vbs = liberator.options["visualbellstyle"];
|
||||||
var popup = document.getElementById("liberator-visualbell");
|
if (vbs)
|
||||||
var win = getBrowser().mPanelContainer;
|
{
|
||||||
var box = document.getBoxObjectFor(win);
|
// flash the visual bell
|
||||||
|
var popup = document.getElementById("liberator-visualbell");
|
||||||
|
var win = getBrowser().mPanelContainer;
|
||||||
|
var box = document.getBoxObjectFor(win);
|
||||||
|
|
||||||
popup.height = box.height;
|
popup.style.cssText = vbs;
|
||||||
popup.width = box.width;
|
popup.height = box.height;
|
||||||
popup.openPopup(win, "overlap", 0, 0, false, false);
|
popup.width = box.width;
|
||||||
setTimeout(function () { popup.hidePopup(); }, 50);
|
popup.openPopup(win, "overlap", 0, 0, false, false);
|
||||||
|
setTimeout(function () { popup.hidePopup(); }, 50);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -546,6 +546,13 @@ Use visual bell instead of beeping on errors. For now you can't turn off both,
|
|||||||
this will hopefully change.
|
this will hopefully change.
|
||||||
____
|
____
|
||||||
|
|
||||||
|
|\'visualbellstyle'| |\'t_vb'|
|
||||||
|
||'visualbellstyle' 't_vb'|| string (default: "border: none; background-color: black;")
|
||||||
|
____
|
||||||
|
The CSS style to use for the visual bell. Set this to the empty string if you
|
||||||
|
want no bell at all.
|
||||||
|
____
|
||||||
|
|
||||||
|\'wim'| |\'wildmode'|
|
|\'wim'| |\'wildmode'|
|
||||||
||'wildmode' 'wim'||
|
||'wildmode' 'wim'||
|
||||||
stringlist (default: "list:full")
|
stringlist (default: "list:full")
|
||||||
|
|||||||
Reference in New Issue
Block a user