Fix zoom-in accelerators
Template tests / tests (push) Successful in 1m53s

This commit is contained in:
2026-07-07 12:45:49 -05:00
parent 058cdc20ab
commit 9e13ea9c40
2 changed files with 8 additions and 3 deletions
+5 -3
View File
@@ -409,13 +409,15 @@ function createWindow() {
function registerHotkeys() {
globalShortcut.unregisterAll();
const zoomBindings = [
['CommandOrControl+=', 'in'],
['CommandOrControl+Plus', 'in'],
['CommandOrControl+Shift+=', 'in'],
['CommandOrControl+Add', 'in'],
['CommandOrControl+=', 'in'],
['CommandOrControl+numadd', 'in'],
['CommandOrControl+-', 'out'],
['CommandOrControl+Minus', 'out'],
['CommandOrControl+Subtract', 'out'],
['CommandOrControl+numsub', 'out'],
['CommandOrControl+0', 'fit'],
['CommandOrControl+num0', 'fit'],
];
for (const [accel, kind] of zoomBindings) {
try {