mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
* fix: Resolve and go next keyboard shortcuts doesn't work * refactor: use buildHotKeys instead of hasPressedCommandPlusAltAndEKey * feat: install tinykeys * refactor: use tinykeys * test: update buildKeyEvents * fix: remove stray import * feat: handle action list globally * feat: allow configuring `allowOnFocusedInput` * chore: Navigate chat list item * chore: Navigate dashboard * feat: Navigate editor top panel * feat: Toggle file upload * chore: More keyboard shortcuts * chore: Update mention selection mixin * chore: Phone input * chore: Clean up * chore: Clean up * chore: Dropdown and editor * chore: Enter key to send and clean up * chore: Rename mixin * chore: Review fixes * chore: Removed unused shortcut from modal * fix: Specs --------- Co-authored-by: iamsivin <iamsivin@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
75 lines
1.2 KiB
JavaScript
75 lines
1.2 KiB
JavaScript
export const SHORTCUT_KEYS = [
|
|
{
|
|
id: 1,
|
|
label: 'NAVIGATE_DROPDOWN',
|
|
firstKey: 'Up',
|
|
secondKey: 'Down',
|
|
},
|
|
{
|
|
id: 2,
|
|
label: 'RESOLVE_CONVERSATION',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'E',
|
|
},
|
|
{
|
|
id: 3,
|
|
label: 'GO_TO_CONVERSATION_DASHBOARD',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'C',
|
|
},
|
|
{
|
|
id: 4,
|
|
label: 'ADD_ATTACHMENT',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'A',
|
|
},
|
|
{
|
|
id: 5,
|
|
label: 'GO_TO_CONTACTS_DASHBOARD',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'V',
|
|
},
|
|
{
|
|
id: 6,
|
|
label: 'TOGGLE_SIDEBAR',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'O',
|
|
},
|
|
{
|
|
id: 7,
|
|
label: 'GO_TO_REPORTS_SIDEBAR',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'R',
|
|
},
|
|
{
|
|
id: 8,
|
|
label: 'MOVE_TO_NEXT_TAB',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'N',
|
|
},
|
|
{
|
|
id: 9,
|
|
label: 'GO_TO_SETTINGS',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'S',
|
|
},
|
|
{
|
|
id: 11,
|
|
label: 'SWITCH_TO_PRIVATE_NOTE',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'P',
|
|
},
|
|
{
|
|
id: 13,
|
|
label: 'SWITCH_TO_REPLY',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'L',
|
|
},
|
|
{
|
|
id: 14,
|
|
label: 'TOGGLE_SNOOZE_DROPDOWN',
|
|
firstKey: 'Alt / ⌥',
|
|
secondKey: 'M',
|
|
},
|
|
];
|