add optional arrowkeys controls option

This commit is contained in:
Araxeus
2021-04-17 04:14:54 +03:00
parent 5adcc3efad
commit 94e152bb57
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,10 @@
module.exports = (win, options) => [
{
label: "Arrowkeys controls",
type: "checkbox",
checked: !!options.arrowsShortcut,
click: (item) => {
win.webContents.send("setArrowsShortcut", item.checked);
}
}
];