mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 20:54:11 +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");
|
||||
|
||||
@@ -51,9 +51,11 @@
|
||||
oncommandupdate="&events;.onSelectionChange(event);"/>
|
||||
</window>
|
||||
|
||||
<!--
|
||||
<deck id="tab-view-deck">
|
||||
<vbox id="dactyl-deck-bell" dactyl:highlight="Bell"/>
|
||||
</deck>
|
||||
-->
|
||||
|
||||
<vbox id="&dactyl.commandContainer;">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user