mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 02:35:47 +01:00
Don't use a popuppanel for the bell on Gecko<2 either.
This commit is contained in:
@@ -263,7 +263,7 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
right: 0 !important;
|
right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
!Bell border: none; background-color: black;
|
!Bell background-color: black !important;
|
||||||
Hint;;* {
|
Hint;;* {
|
||||||
/* This gets released into the wild, so everything is important */
|
/* This gets released into the wild, so everything is important */
|
||||||
font: bold 10px monospace !important;
|
font: bold 10px monospace !important;
|
||||||
|
|||||||
@@ -146,16 +146,8 @@ const Dactyl = Module("dactyl", {
|
|||||||
util.timeout(function () { popup.parentNode.selectedPanel = restore; }, 20);
|
util.timeout(function () { popup.parentNode.selectedPanel = restore; }, 20);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
popup = document.getElementById("dactyl-popup-bell");
|
highlight.highlightNode(document.documentElement, "Bell");
|
||||||
let win = config.visualbellWindow;
|
util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 20);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -28,9 +28,6 @@
|
|||||||
<window id="&dactyl.mainWindow;">
|
<window id="&dactyl.mainWindow;">
|
||||||
|
|
||||||
<popupset>
|
<popupset>
|
||||||
<panel id="dactyl-popup-bell" dactyl:highlight="Bell"
|
|
||||||
noautohide="true" noautofocus="true"/>
|
|
||||||
|
|
||||||
<menupopup id="dactyl-contextmenu"
|
<menupopup id="dactyl-contextmenu"
|
||||||
onpopupshowing="return (event.target != this || dactyl.modules.commandline.onContext(event));">
|
onpopupshowing="return (event.target != this || dactyl.modules.commandline.onContext(event));">
|
||||||
<menuitem id="dactyl-context-copylink"
|
<menuitem id="dactyl-context-copylink"
|
||||||
|
|||||||
@@ -70,7 +70,10 @@
|
|||||||
url-prefix(chrome://) {
|
url-prefix(chrome://) {
|
||||||
|
|
||||||
[dactyl|highlight~=Bell] {
|
[dactyl|highlight~=Bell] {
|
||||||
-moz-appearance: none;
|
-moz-appearance: none !important;
|
||||||
|
}
|
||||||
|
window[dactyl|highlight~=Bell] > * {
|
||||||
|
visibility: hidden !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
[dactyl|highlight~=CmdLine] {
|
[dactyl|highlight~=CmdLine] {
|
||||||
|
|||||||
Reference in New Issue
Block a user