Clear keyboard shortcut

This commit is contained in:
Tamius Han 2022-04-13 00:24:10 +02:00
parent 0daef615c1
commit 4f4eb46a60

View File

@ -19,6 +19,9 @@
>
</template>
</div>
<div class="button" @click="$emit('shortcutChanged', null)">
<mdicon name="delete"></mdicon>
</div>
</div>
</template>
@ -99,7 +102,6 @@ export default {
if (fixedShortcut.notModifier) {
this.editing = false;
this.$emit('shortcutChanged', this.currentKey);
console.log('emitted shortcut:', shortcut, 'raw event:', event);
} else {
// if none of the modifiers are pressed and if no other key is being held down,
// we need to reset label back to 'pls press key'