Commit d4261b98 authored by Johannes Winter's avatar Johannes Winter

deactivate shortcut

relate to #58
parent e2bfc5ed
......@@ -24,19 +24,19 @@ export default {
return {
isEditModalActive: false
}
},
created: function() {
document.addEventListener('keyup', this.KeyListener);
},
destroyed: function() {
document.removeEventListener('keyup', this.KeyListener);
},
methods: {
KeyListener: function(evt) {
if (evt.keyCode === 80 && evt.ctrlKey && evt.altKey) { // 80==`p`
this.isEditModalActive = true
}
}
}
// created: function() {
// document.addEventListener('keyup', this.KeyListener);
// },
// destroyed: function() {
// document.removeEventListener('keyup', this.KeyListener);
// },
// methods: {
// KeyListener: function(evt) {
// if (evt.keyCode === 80 && evt.ctrlKey && evt.altKey) { // 80==`p`
// this.isEditModalActive = true
// }
// }
// }
}
</script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment