mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-22 07:05:20 +00:00
keyboard shortcuts for 'archived, then next/previous'
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
setup({email}, {emit}) {
|
||||
useKeydown([
|
||||
{key: 'k', fn: () => emit('changeEmail', {amount: -1})},
|
||||
{key: 'j', fn: () => emit('changeEmail', {amount: 1})}
|
||||
{key: 'j', fn: () => emit('changeEmail', {amount: 1})},
|
||||
{key: '[', fn: () => emit('changeEmail', {amount: -1, archive: true})},
|
||||
{key: ']', fn: () => emit('changeEmail', {amount: 1, archive: true})},
|
||||
])
|
||||
|
||||
let emailMarkdown = marked(email.body);
|
||||
|
||||
Reference in New Issue
Block a user