refactor: keyboard shortcuts on google chrome browser on mac os (#1717)

now the keyboard shortcuts are working in mac os google chrome too

Fixes: #1716
This commit is contained in:
pc_11
2023-03-21 12:27:50 -06:00
committed by GitHub
parent f1f50fe421
commit 9a4e4a0f8f
+33 -33
View File
@@ -17,31 +17,31 @@ export class KeyboardShortcutsConfiguration {
makeCombination() { makeCombination() {
this.buttonsArray = [ this.buttonsArray = [
// Navigation Page - alt + n // Navigation Page - ctrl + n
{ {
title: 'Navigation Page', title: 'Navigation Page',
ctrlKey: false, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'n', key: 'n',
route: 'navigation' route: 'navigation'
}, },
// Run Report - alt + r // Run Report - ctrl + t
{ {
title: 'Run Report', title: 'Run Report',
ctrlKey: false, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'r', key: 't',
route: '', route: '',
id: 'runReport' id: 'runReport'
}, },
// Checker Inbox & Pending Tasks - ctrl + alt + i // Checker Inbox & Pending Tasks - ctrl + i
{ {
title: 'Checker Inbox & Pending Tasks', title: 'Checker Inbox & Pending Tasks',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'i', key: 'i',
route: 'checker-inbox-and-tasks/checker-inbox' route: 'checker-inbox-and-tasks/checker-inbox'
}, },
@@ -54,104 +54,104 @@ export class KeyboardShortcutsConfiguration {
// key: 'o', // key: 'o',
// route: '' // route: ''
// }, // },
// Create Client - ctrl + alt + c // Create Client - ctrl + c
{ {
title: 'Create Client', title: 'Create Client',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'c', key: 'c',
route: 'clients/create' route: 'clients/create'
}, },
// Create Group - ctrl + alt + g // Create Group - ctrl + g
{ {
title: 'Create Group', title: 'Create Group',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'g', key: 'g',
route: 'groups/create' route: 'groups/create'
}, },
// Create Center - ctrl + alt + q // Create Center - ctrl + q
{ {
title: 'Create Center', title: 'Create Center',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'q', key: 'q',
route: 'centers/create' route: 'centers/create'
}, },
// Frequent Posting - ctrl + alt + f // Frequent Posting - ctrl + f
{ {
title: 'Frequent Posting', title: 'Frequent Posting',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'f', key: 'f',
route: 'accounting/journal-entries/frequent-postings' route: 'accounting/journal-entries/frequent-postings'
}, },
// Closure Entries - ctrl + alt + e // Closure Entries - ctrl + e
{ {
title: 'Closure Entries', title: 'Closure Entries',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'e', key: 'e',
route: 'accounting/closing-entries' route: 'accounting/closing-entries'
}, },
// Journal Entry - ctrl + alt + j // Journal Entry - ctrl + j
{ {
title: 'Journal Entry', title: 'Journal Entry',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'j', key: 'j',
route: 'accounting/journal-entries/create' route: 'accounting/journal-entries/create'
}, },
// Reports - ctrl + alt + r // Reports - ctrl + r
{ {
title: 'Reports', title: 'Reports',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'r', key: 'r',
route: 'reports' route: 'reports'
}, },
// Accounting - ctrl + alt + a // Accounting - ctrl + a
{ {
title: 'Accounting', title: 'Accounting',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'a', key: 'a',
route: 'accounting' route: 'accounting'
}, },
// Save/Submit Forms - ctrl + alt + s // Save/Submit Forms - ctrl + s
{ {
title: 'Save/Submit Forms', title: 'Save/Submit Forms',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 's', key: 's',
route: '', route: '',
id: 'submit' id: 'submit'
}, },
// Cancel - ctrl + alt + x // Cancel - ctrl + x
{ {
title: 'Cancel', title: 'Cancel',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'x', key: 'x',
route: '', route: '',
id: 'cancel' id: 'cancel'
}, },
// Help - ctrl + alt + h // Help - ctrl + h
{ {
title: 'Help', title: 'Help',
ctrlKey: true, ctrlKey: true,
shiftKey: false, shiftKey: false,
altKey: true, altKey: false,
key: 'h', key: 'h',
route: '', route: '',
id: 'help' id: 'help'
@@ -174,11 +174,11 @@ export class KeyboardShortcutsConfiguration {
// key: 'p, // key: 'p,
// route: '' // route: ''
// }, // },
// Logout - ctrl + shift + l // Logout - ctrl + l
{ {
title: 'Logout', title: 'Logout',
ctrlKey: true, ctrlKey: true,
shiftKey: true, shiftKey: false,
altKey: false, altKey: false,
key: 'l', key: 'l',
route: '', route: '',