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