mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 13:15:45 +01:00
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user