portree_kid 2020-10-04 22:18:51 +02:00
parent 71c8a6f8e0
commit 7c57323daf

View File

@ -110,7 +110,7 @@ You should have received a copy of the GNU General Public License along with FG
methods: { methods: {
doCommand (e) { doCommand (e) {
let cmd = String.fromCharCode(e.keyCode).toLowerCase() let cmd = String.fromCharCode(e.keyCode).toLowerCase()
if (e.keyCode === 46 /** DEL */) { if (e.keyCode === 46 /** DEL */ && e.target.type !== 'text') {
this.$parent.$parent.$refs.editLayer.deleteFeature() this.$parent.$parent.$refs.editLayer.deleteFeature()
} }
console.log(cmd) console.log(cmd)