mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-01 17:12:28 +01:00
Don't use a popuppanel for the bell on Gecko<2 either.
This commit is contained in:
@@ -146,16 +146,8 @@ const Dactyl = Module("dactyl", {
|
||||
util.timeout(function () { popup.parentNode.selectedPanel = restore; }, 20);
|
||||
}
|
||||
else {
|
||||
popup = document.getElementById("dactyl-popup-bell");
|
||||
let win = config.visualbellWindow;
|
||||
let rect = win.getBoundingClientRect();
|
||||
let width = rect.right - rect.left;
|
||||
let height = rect.bottom - rect.top;
|
||||
|
||||
// NOTE: this doesn't seem to work in FF3 with full box dimensions
|
||||
popup.openPopup(win, "overlap", 1, 1, false, false);
|
||||
popup.sizeTo(width - 2, height - 2);
|
||||
util.timeout(function () { popup.hidePopup(); }, 20);
|
||||
highlight.highlightNode(document.documentElement, "Bell");
|
||||
util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 20);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user