mdilDelete,
mdilPencil,
} from "@mdi/light-js";
+import Mousetrap from "mousetrap";
import { useToast } from "primevue/usetoast";
import { computed, ref, watch } from "vue";
import { useRouter } from "vue-router";
const toast = useToast();
const toastEditor = ref();
+// 'e' to edit
+Mousetrap.bind("e", function () {
+ console.log("edit");
+ if (editMode.value === false) {
+ editHandler();
+ }
+});
+
function init() {
// Return if we already have the note
if (props.title == note.value.title) {