feat(note): open note in new tab on cmd press #395
@ -175,8 +175,13 @@ export default function Note(props: NoteProps) {
|
|||||||
|
|
||||||
function goToEvent(e: React.MouseEvent, id: u256) {
|
function goToEvent(e: React.MouseEvent, id: u256) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
// detect cmd key and open in new tab
|
||||||
|
if (e.metaKey) {
|
||||||
|
window.open(eventLink(id), "_blank");
|
||||||
|
} else {
|
||||||
navigate(eventLink(id));
|
navigate(eventLink(id));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function replyTag() {
|
function replyTag() {
|
||||||
if (ev.Thread === null) {
|
if (ev.Thread === null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user