Skip to content

Commit 8b8bfd2

Browse files
authored
remove the species shortcut (#487)
* remove the species shortcut * remove the onMounted, onUnmounted references
1 parent 66aaae7 commit 8b8bfd2

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

client/src/components/SingleSpecieEditor.vue

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import {
66
ref,
77
watch,
88
type Ref,
9-
onMounted,
10-
onUnmounted,
119
} from "vue";
1210
import type { Species } from "@api/api";
1311
import SingleSpecieInfo from "./SingleSpecieInfo.vue";
@@ -115,15 +113,6 @@ export default defineComponent({
115113
);
116114
};
117115
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-
127116
const onClearOrDeleteClick = () => {
128117
if (selectedCode.value) {
129118
selectedCode.value = null;

0 commit comments

Comments
 (0)