Changed clear search from CTRL+BACKSPACE to CTRL+SHIFT+BACKSPACE

This commit is contained in:
RemixDev 2020-09-23 17:02:26 +02:00
parent 760ce913b6
commit fdd30396b7
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@ export default {
}, },
mounted() { mounted() {
document.addEventListener('keyup', keyEvent => { document.addEventListener('keyup', keyEvent => {
if (!(keyEvent.key == 'Backspace' && keyEvent.ctrlKey)) return if (!(keyEvent.key == 'Backspace' && keyEvent.ctrlKey && keyEvent.shiftKey)) return
this.$refs.searchbar.value = '' this.$refs.searchbar.value = ''
this.$refs.searchbar.focus() this.$refs.searchbar.focus()
@ -96,4 +96,4 @@ export default {
</script> </script>
<style> <style>
</style> </style>