Clear keyboard shortcut
This commit is contained in:
parent
0daef615c1
commit
4f4eb46a60
@ -19,6 +19,9 @@
|
|||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="button" @click="$emit('shortcutChanged', null)">
|
||||||
|
<mdicon name="delete"></mdicon>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -99,7 +102,6 @@ export default {
|
|||||||
if (fixedShortcut.notModifier) {
|
if (fixedShortcut.notModifier) {
|
||||||
this.editing = false;
|
this.editing = false;
|
||||||
this.$emit('shortcutChanged', this.currentKey);
|
this.$emit('shortcutChanged', this.currentKey);
|
||||||
console.log('emitted shortcut:', shortcut, 'raw event:', event);
|
|
||||||
} else {
|
} else {
|
||||||
// if none of the modifiers are pressed and if no other key is being held down,
|
// 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'
|
// we need to reset label back to 'pls press key'
|
||||||
|
Loading…
Reference in New Issue
Block a user