mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-11 18:54:31 +00:00
keyboard shortcuts on the keys
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="email-display" v-if="email">
|
||||
<div class="toolbar">
|
||||
<button @click="toggleArchive">{{email.archived ? 'Move to Inbox' : 'Archive'}}</button>
|
||||
<button @click="goNewer">Newer</button>
|
||||
<button @click="goOlder">Older</button>
|
||||
<button @click="toggleArchive">{{email.archived ? 'Move to Inbox (e)' : 'Archive (e)'}}</button>
|
||||
<button @click="goNewer">Newer (k)</button>
|
||||
<button @click="goOlder">Older (j)</button>
|
||||
<button @click="toggleRead()">Mark {{email.read ? 'Unread' : 'Read'}}</button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user