Добавил горячую клавишу

This commit is contained in:
Book Pauk
2019-02-18 17:23:12 +07:00
parent 0f5d3b34a5
commit 67bc893e22
3 changed files with 9 additions and 1 deletions

View File

@@ -103,6 +103,13 @@ class LoaderPage extends Vue {
event.stopPropagation();
return true;
}
if (event.type == 'keydown' && (document.activeElement !== input && event.code == 'KeyQ')) {
this.$emit('tool-bar-toggle');
event.preventDefault();
event.stopPropagation();
return true;
}
}
}
//-----------------------------------------------------------------------------