mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 03:12:27 +01:00
added a visual bell and replaced the 'beep' option with 'visualbell'
This commit is contained in:
@@ -280,8 +280,26 @@ const vimperator = (function() //{{{
|
||||
|
||||
beep: function()
|
||||
{
|
||||
if (vimperator.options["beep"])
|
||||
if (vimperator.options["visualbell"])
|
||||
{
|
||||
// flash the visual bell
|
||||
var vbell = document.getElementById("vimperator-visualbell");
|
||||
var box = getBrowser().mPanelContainer.boxObject;
|
||||
|
||||
vbell.style.position = "fixed";
|
||||
vbell.style.height = box.height + "px";
|
||||
vbell.style.width = box.width + "px";
|
||||
vbell.style.left = box.x + "px";
|
||||
vbell.style.top = box.y + "px";
|
||||
|
||||
vbell.hidden = false
|
||||
|
||||
setTimeout(function() { vbell.hidden = true; }, 50); // may as well be 0 ;-)
|
||||
}
|
||||
else
|
||||
{
|
||||
sound_service.beep();
|
||||
}
|
||||
},
|
||||
|
||||
copyToClipboard: function(str)
|
||||
|
||||
Reference in New Issue
Block a user