type char from keyboard when char panel open

This commit is contained in:
Hugh Bord 2021-08-12 13:23:43 +10:00
parent 5c64bb8d28
commit c09f2db82f
2 changed files with 7 additions and 1 deletions

View File

@ -21,7 +21,6 @@
* Circle brush (works okay for odd width and height numbers)
# FOCUSING ON NOW
* Cut / copy then paste with ctrl v
* Type letter when choosing char, leave char panel open after
* Modals

View File

@ -98,6 +98,13 @@ export default {
e.preventDefault();
if (this.toolbarState.isChoosingChar) {
if (e.key.length === 1) {
this.$store.commit("changeChar", e.key)
return
}
}
const ctrlKey = e.ctrlKey || e.metaKey;
const shiftKey = e.shiftKey;