We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66aaae7 commit 8b8bfd2Copy full SHA for 8b8bfd2
1 file changed
client/src/components/SingleSpecieEditor.vue
@@ -6,8 +6,6 @@ import {
6
ref,
7
watch,
8
type Ref,
9
- onMounted,
10
- onUnmounted,
11
} from "vue";
12
import type { Species } from "@api/api";
13
import SingleSpecieInfo from "./SingleSpecieInfo.vue";
@@ -115,15 +113,6 @@ export default defineComponent({
115
113
);
116
114
};
117
118
- const speciesShortcut = (e: KeyboardEvent) => {
119
- if (e.key === "S" && e.shiftKey) {
120
- e.preventDefault();
121
- speciesAutocomplete.value?.focus();
122
- }
123
- };
124
- onMounted(() => window.addEventListener("keydown", speciesShortcut));
125
- onUnmounted(() => window.removeEventListener("keydown", speciesShortcut));
126
-
127
const onClearOrDeleteClick = () => {
128
if (selectedCode.value) {
129
selectedCode.value = null;
0 commit comments