1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-25 05:55:46 +01:00

Work around the Panorama devs' apathy.

Update issue #132
...
This commit is contained in:
Kris Maglione
2010-11-10 11:41:17 -05:00
parent ffec397c1a
commit e153b36b8e
2 changed files with 9 additions and 5 deletions

View File

@@ -139,11 +139,13 @@ const Dactyl = Module("dactyl", {
beep: requiresMainThread(function () { beep: requiresMainThread(function () {
if (options["visualbell"]) { if (options["visualbell"]) {
// flash the visual bell // flash the visual bell
let popup = document.getElementById("dactyl-deck-bell"); let panel = document.getElementById("dactyl-deck-bell");
if (popup) { if (panel) {
let restore = popup.parentNode.selectedPanel; let restore = panel.parentNode.selectedPanel;
popup.parentNode.selectedPanel = popup; if (restore !== panel) {
util.timeout(function () { popup.parentNode.selectedPanel = restore; }, 20); panel.parentNode.selectedPanel = panel;
util.timeout(function () { panel.parentNode.selectedPanel = restore; }, 20);
}
} }
else { else {
highlight.highlightNode(document.documentElement, "Bell"); highlight.highlightNode(document.documentElement, "Bell");

View File

@@ -51,9 +51,11 @@
oncommandupdate="&events;.onSelectionChange(event);"/> oncommandupdate="&events;.onSelectionChange(event);"/>
</window> </window>
<!--
<deck id="tab-view-deck"> <deck id="tab-view-deck">
<vbox id="dactyl-deck-bell" dactyl:highlight="Bell"/> <vbox id="dactyl-deck-bell" dactyl:highlight="Bell"/>
</deck> </deck>
-->
<vbox id="&dactyl.commandContainer;"> <vbox id="&dactyl.commandContainer;">