Merge pull request #395 from lujakob/fix/open-note-in-new-tab
feat(note): open note in new tab on cmd press
This commit is contained in:
commit
4dc26a08af
@ -175,7 +175,12 @@ export default function Note(props: NoteProps) {
|
|||||||
|
|
||||||
function goToEvent(e: React.MouseEvent, id: u256) {
|
function goToEvent(e: React.MouseEvent, id: u256) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
navigate(eventLink(id));
|
// detect cmd key and open in new tab
|
||||||
|
if (e.metaKey) {
|
||||||
|
window.open(eventLink(id), "_blank");
|
||||||
|
} else {
|
||||||
|
navigate(eventLink(id));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function replyTag() {
|
function replyTag() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user