Improve usability

This commit is contained in:
syuilo 2021-04-29 12:31:47 +09:00
parent 18da55bd81
commit d7a5efbd36
4 changed files with 4 additions and 4 deletions

View file

@ -313,7 +313,7 @@ export default defineComponent({
} }
}; };
if (isLink(e.target)) return; if (isLink(e.target)) return;
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
if (window.getSelection().toString() !== '') return; if (window.getSelection().toString() !== '') return;
const path = this.$route.path; const path = this.$route.path;
os.contextMenu([{ os.contextMenu([{

View file

@ -64,7 +64,7 @@ export default defineComponent({
} }
}; };
if (isLink(e.target)) return; if (isLink(e.target)) return;
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
if (window.getSelection().toString() !== '') return; if (window.getSelection().toString() !== '') return;
const path = this.$route.path; const path = this.$route.path;
os.contextMenu([{ os.contextMenu([{

View file

@ -165,7 +165,7 @@ export default defineComponent({
} }
}; };
if (isLink(e.target)) return; if (isLink(e.target)) return;
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
if (window.getSelection().toString() !== '') return; if (window.getSelection().toString() !== '') return;
const path = this.$route.path; const path = this.$route.path;
os.contextMenu([{ os.contextMenu([{

View file

@ -191,7 +191,7 @@ export default defineComponent({
} }
}; };
if (isLink(e.target)) return; if (isLink(e.target)) return;
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
if (window.getSelection().toString() !== '') return; if (window.getSelection().toString() !== '') return;
const path = this.$route.path; const path = this.$route.path;
os.contextMenu([{ os.contextMenu([{