1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Adding basic menu accelerators (#729)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2020-08-24 09:43:14 +03:00 committed by GitHub
parent 4a8d1ab205
commit c7b11f86af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ export function buildMenu(windowManager: WindowManager) {
{ type: 'separator' },
{
label: 'Preferences',
accelerator: 'Cmd+,',
click() {
navigate(preferencesURL())
}
@ -91,6 +92,7 @@ export function buildMenu(windowManager: WindowManager) {
submenu: [
{
label: 'Add Cluster',
accelerator: 'CmdOrCtrl+Shift+A',
click() {
navigate(addClusterURL())
}
@ -98,6 +100,7 @@ export function buildMenu(windowManager: WindowManager) {
...activeClusterOnly([
{
label: 'Cluster Settings',
accelerator: 'CmdOrCtrl+Shift+S',
click() {
navigate(clusterSettingsURL({
params: {
@ -111,6 +114,7 @@ export function buildMenu(windowManager: WindowManager) {
{ type: 'separator' },
{
label: 'Preferences',
accelerator: 'Ctrl+,',
click() {
navigate(preferencesURL())
}