Keyboard shortcuts and accessibility
This commit is contained in:
parent
8590a047c7
commit
20a892247f
87 changed files with 3652 additions and 711 deletions
13
preload.js
13
preload.js
|
@ -128,17 +128,14 @@ ipc.on('set-up-as-standalone', () => {
|
|||
window.showSettings = () => ipc.send('show-settings');
|
||||
window.showPermissionsPopup = () => ipc.send('show-permissions-popup');
|
||||
|
||||
ipc.on('show-keyboard-shortcuts', () => {
|
||||
window.Events.showKeyboardShortcuts();
|
||||
});
|
||||
ipc.on('add-dark-overlay', () => {
|
||||
const { addDarkOverlay } = window.Events;
|
||||
if (addDarkOverlay) {
|
||||
addDarkOverlay();
|
||||
}
|
||||
window.Events.addDarkOverlay();
|
||||
});
|
||||
ipc.on('remove-dark-overlay', () => {
|
||||
const { removeDarkOverlay } = window.Events;
|
||||
if (removeDarkOverlay) {
|
||||
removeDarkOverlay();
|
||||
}
|
||||
window.Events.removeDarkOverlay();
|
||||
});
|
||||
|
||||
installGetter('device-name', 'getDeviceName');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue