type char from keyboard when char panel open
This commit is contained in:
parent
5c64bb8d28
commit
c09f2db82f
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue