feat: Keyboard shortcuts improvements (#2790)
This commit is contained in:
parent
69b0434bb7
commit
d13c4ff8c5
7 changed files with 31 additions and 9 deletions
|
@ -94,7 +94,10 @@ import AccountSelector from './sidebarComponents/AccountSelector.vue';
|
|||
import AddAccountModal from './sidebarComponents/AddAccountModal.vue';
|
||||
import AddLabelModal from '../../routes/dashboard/settings/labels/AddLabel';
|
||||
import WootKeyShortcutModal from 'components/widgets/modal/WootKeyShortcutModal';
|
||||
import { hasPressedCommandAndForwardSlash } from 'shared/helpers/KeyboardHelpers';
|
||||
import {
|
||||
hasPressedCommandAndForwardSlash,
|
||||
isEscape,
|
||||
} from 'shared/helpers/KeyboardHelpers';
|
||||
import eventListenerMixins from 'shared/mixins/eventListenerMixins';
|
||||
|
||||
export default {
|
||||
|
@ -278,6 +281,9 @@ export default {
|
|||
if (hasPressedCommandAndForwardSlash(e)) {
|
||||
this.toggleKeyShortcutModal();
|
||||
}
|
||||
if (isEscape(e)) {
|
||||
this.closeKeyShortcutModal();
|
||||
}
|
||||
},
|
||||
toggleSupportChatWindow() {
|
||||
window.$chatwoot.toggle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue