1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 13:15:45 +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 () {
if (options["visualbell"]) {
// flash the visual bell
let popup = document.getElementById("dactyl-deck-bell");
if (popup) {
let restore = popup.parentNode.selectedPanel;
popup.parentNode.selectedPanel = popup;
util.timeout(function () { popup.parentNode.selectedPanel = restore; }, 20);
let panel = document.getElementById("dactyl-deck-bell");
if (panel) {
let restore = panel.parentNode.selectedPanel;
if (restore !== panel) {
panel.parentNode.selectedPanel = panel;
util.timeout(function () { panel.parentNode.selectedPanel = restore; }, 20);
}
}
else {
highlight.highlightNode(document.documentElement, "Bell");