fixed shortcut keymap to make it work in all kind of os and browsers

fixed linting
This commit is contained in:
kunjgit
2024-03-10 14:29:03 -06:00
committed by Jose Alberto Hernandez
parent a1b169a4bd
commit 85739e213d
+74 -74
View File
@@ -17,170 +17,170 @@ export class KeyboardShortcutsConfiguration {
makeCombination() { makeCombination() {
this.buttonsArray = [ this.buttonsArray = [
// Navigation Page - ctrl + n // Navigation Page - Shift + N
{ {
title: 'Navigation Page', title: 'Navigation Page',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'n', key: 'N',
route: 'navigation' route: 'navigation'
}, },
// Run Report - ctrl + t // Run Report - Shift + T
{ {
title: 'Run Report', title: 'Run Report',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 't', key: 'T',
route: '', route: '',
id: 'runReport' id: 'runReport'
}, },
// Checker Inbox & Pending Tasks - ctrl + i // Checker Inbox & Pending Tasks - Shift + I
{ {
title: 'Checker Inbox & Pending Tasks', title: 'Checker Inbox & Pending Tasks',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'i', key: 'I',
route: 'checker-inbox-and-tasks/checker-inbox' route: 'checker-inbox-and-tasks/checker-inbox'
}, },
// Collection Sheet- ctrl + alt + o // Collection Sheet- Ctrl + Alt + O
// { // {
// title: 'Collection Sheet', // title: 'Collection Sheet',
// ctrlKey: true, // ctrlKey: true,
// shiftKey: false, // shiftKey: false,
// altKey: true, // altKey: true,
// key: 'o', // key: 'o',
// route: '' // route: ''
// }, // },
// Create Client - ctrl + c // Create Client - Shift + C
{ {
title: 'Create Client', title: 'Create Client',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'c', key: 'C',
route: 'clients/create' route: 'clients/create'
}, },
// Create Group - ctrl + g // Create Group - Shift + G
{ {
title: 'Create Group', title: 'Create Group',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'g', key: 'G',
route: 'groups/create' route: 'groups/create'
}, },
// Create Center - ctrl + q // Create Center - Shift + Q
{ {
title: 'Create Center', title: 'Create Center',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'q', key: 'Q',
route: 'centers/create' route: 'centers/create'
}, },
// Frequent Posting - ctrl + f // Frequent Posting - Shift + F
{ {
title: 'Frequent Posting', title: 'Frequent Posting',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'f', key: 'F',
route: 'accounting/journal-entries/frequent-postings' route: 'accounting/journal-entries/frequent-postings'
}, },
// Closure Entries - ctrl + e // Closure Entries - Shift + E
{ {
title: 'Closure Entries', title: 'Closure Entries',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'e', key: 'E',
route: 'accounting/closing-entries' route: 'accounting/closing-entries'
}, },
// Journal Entry - ctrl + j // Journal Entry - Shift + J
{ {
title: 'Journal Entry', title: 'Journal Entry',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'j', key: 'J',
route: 'accounting/journal-entries/create' route: 'accounting/journal-entries/create'
}, },
// Reports - ctrl + r // Reports - Shift + R
{ {
title: 'Reports', title: 'Reports',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'r', key: 'R',
route: 'reports' route: 'reports'
}, },
// Accounting - ctrl + a // Accounting - Shift + A
{ {
title: 'Accounting', title: 'Accounting',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'a', key: 'A',
route: 'accounting' route: 'accounting'
}, },
// Save/Submit Forms - ctrl + s // Save/Submit Forms - Shift + S
{ {
title: 'Save/Submit Forms', title: 'Save/Submit Forms',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 's', key: 'S',
route: '', route: '',
id: 'submit' id: 'submit'
}, },
// Cancel - ctrl + x // Cancel - Shift + X
{ {
title: 'Cancel', title: 'Cancel',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'x', key: 'X',
route: '', route: '',
id: 'cancel' id: 'cancel'
}, },
// Help - ctrl + h // Help - Shift + H
{ {
title: 'Help', title: 'Help',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'h', key: 'H',
route: '', route: '',
id: 'help' id: 'help'
}, },
// Pagination: Next - ctrl + n // Pagination: Next - Ctrl + n
// { // {
// title: 'Pagination: Next' // title: 'Pagination: Next'
// ctrlKey: true, // ctrlKey: true,
// shiftKey: false, // shiftKey: false,
// altKey: true, // altKey: true,
// key: 'n, // key: 'n',
// route: '' // route: ''
// }, // },
// Pagination: Previous - ctrl + p // Pagination: Previous - Ctrl + p
// { // {
// title: 'Pagination: Previous' // title: 'Pagination: Previous'
// ctrlKey: true, // ctrlKey: true,
// shiftKey: false, // shiftKey: false,
// altKey: true, // altKey: true,
// key: 'p, // key: 'p',
// route: '' // route: ''
// }, // },
// Logout - ctrl + l // Logout - Shift + L
{ {
title: 'Logout', title: 'Logout',
ctrlKey: true, ctrlKey: false,
shiftKey: false, shiftKey: true,
altKey: false, altKey: false,
key: 'l', key: 'L',
route: '', route: '',
id: 'logout' id: 'logout'
} }