Skip to content

Commit c3f3652

Browse files
authored
Add hidden numpad shortcuts for zoom actions (#2646)
* Add hidden numpad shortcuts for zoom actions Introduces hidden menu items to enable CmdOrCtrl+numadd and CmdOrCtrl+numsub shortcuts for zooming in and out using the numpad. This improves accessibility for users who prefer numpad shortcuts. * Add customizable homepage Introduces a new customizable new tab page with clock, greeting, and search bar. Adds settings for enabling/disabling the homepage, choosing between default or custom URL, toggling clock and greeting, and selecting time format. Implements new internal protocols for 'min://newtab' and 'min://blank', updates localization, and refines related CSS and JS for the new tab and settings pages. * Revert "Add customizable homepage" This reverts commit 99b360c. * Reapply "Add customizable homepage" This reverts commit 234bf5f. * Revert "Add customizable homepage" This reverts commit 99b360c.
1 parent b4506dc commit c3f3652

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

main/menu.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,24 @@ function buildAppMenu (options = {}) {
257257
sendIPCToWindow(window, 'zoomOut')
258258
}
259259
},
260+
// Hidden item to enable shortcut on numpad
261+
{
262+
label: l('appMenuZoomIn'),
263+
accelerator: 'CmdOrCtrl+numadd',
264+
click: function (item, window) {
265+
sendIPCToWindow(window, 'zoomIn')
266+
},
267+
visible: false
268+
},
269+
// Hidden item to enable shortcut on numpad
270+
{
271+
label: l('appMenuZoomOut'),
272+
accelerator: 'CmdOrCtrl+numsub',
273+
click: function (item, window) {
274+
sendIPCToWindow(window, 'zoomOut')
275+
},
276+
visible: false
277+
},
260278
{
261279
label: l('appMenuActualSize'),
262280
accelerator: 'CmdOrCtrl+0',

0 commit comments

Comments
 (0)