mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-28 06:48:36 +09:00
chore
This commit is contained in:
parent
3b97e9bc98
commit
da5d52be20
@ -443,12 +443,12 @@ if (!props.mock) {
|
||||
}
|
||||
|
||||
function noteClick(ev: MouseEvent) {
|
||||
if (!expandOnNoteClick || window.getSelection().toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'doubleClick') ev.stopPropagation();
|
||||
if (!expandOnNoteClick || window.getSelection()?.toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'doubleClick') ev.stopPropagation();
|
||||
else router.push(notePage(appearNote.value));
|
||||
}
|
||||
|
||||
function noteDblClick(ev: MouseEvent) {
|
||||
if (!expandOnNoteClick || window.getSelection().toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'click') ev.stopPropagation();
|
||||
if (!expandOnNoteClick || window.getSelection()?.toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'click') ev.stopPropagation();
|
||||
else router.push(notePage(appearNote.value));
|
||||
}
|
||||
|
||||
|
@ -57,12 +57,12 @@ onMounted(() => {
|
||||
});
|
||||
|
||||
function noteClick(ev: MouseEvent) {
|
||||
if (!expandOnNoteClick || window.getSelection().toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'doubleClick') ev.stopPropagation();
|
||||
if (!expandOnNoteClick || window.getSelection()?.toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'doubleClick') ev.stopPropagation();
|
||||
else router.push(notePage(props.note));
|
||||
}
|
||||
|
||||
function noteDblClick(ev: MouseEvent) {
|
||||
if (!expandOnNoteClick || window.getSelection().toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'click') ev.stopPropagation();
|
||||
if (!expandOnNoteClick || window.getSelection()?.toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'click') ev.stopPropagation();
|
||||
else router.push(notePage(props.note));
|
||||
}
|
||||
</script>
|
||||
|
@ -88,12 +88,12 @@ if (props.detail) {
|
||||
}
|
||||
|
||||
function noteClick(ev: MouseEvent) {
|
||||
if (!expandOnNoteClick || window.getSelection().toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'doubleClick') ev.stopPropagation();
|
||||
if (!expandOnNoteClick || window.getSelection()?.toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'doubleClick') ev.stopPropagation();
|
||||
else router.push(notePage(props.note));
|
||||
}
|
||||
|
||||
function noteDblClick(ev: MouseEvent) {
|
||||
if (!expandOnNoteClick || window.getSelection().toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'click') ev.stopPropagation();
|
||||
if (!expandOnNoteClick || window.getSelection()?.toString() !== '' || defaultStore.state.expandOnNoteClickBehavior === 'click') ev.stopPropagation();
|
||||
else router.push(notePage(props.note));
|
||||
}
|
||||
</script>
|
||||
|
@ -112,7 +112,7 @@ function onContextmenu(ev: MouseEvent) {
|
||||
};
|
||||
if (isLink(ev.target)) return;
|
||||
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes(ev.target.tagName) || ev.target.attributes['contenteditable']) return;
|
||||
if (window.getSelection().toString() !== '') return;
|
||||
if (window.getSelection()?.toString() !== '') return;
|
||||
const path = mainRouter.getCurrentPath();
|
||||
os.contextMenu([{
|
||||
type: 'label',
|
||||
|
Loading…
Reference in New Issue
Block a user