Skip to content

Commit

Permalink
remove keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Jul 29, 2024
1 parent 9d47457 commit 7ac5efe
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/components/sentence/SentenceCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,6 @@ export default defineComponent({
},
mounted() {
this.focused = this.isFocused as boolean;
window.addEventListener('keydown', (event) => {
this.handleShortcut(event, '');
});
},
methods: {
...mapActions(useGrewSearchStore, ['removePendingModification']),
Expand Down Expand Up @@ -640,22 +637,6 @@ export default defineComponent({
this.focused = true;
this.$emit('focused-sent', sentId);
},
handleShortcut(event: any, user: string) {
if (this.openTabUser === '') {
return;
}
if (this.focused) {
if (event.keyCode === 83 && event.shiftKey) {
this.save(user);
}
if (event.keyCode === 90 && this.canUndo && event.ctrlKey) {
this.undo();
}
if (event.keyCode === 89 && this.canRedo && event.ctrlKey) {
this.redo();
}
}
},
synchronizeScroll(event: Event) {
this.horizontalScrollPos = (event.target as HTMLElement).scrollLeft;
}
Expand Down

0 comments on commit 7ac5efe

Please sign in to comment.