hlClicked: allow opening originating article directly while middle-clicking on the headline title
This commit is contained in:
parent
add81ec7a7
commit
ccdddcc251
|
@ -5042,7 +5042,7 @@
|
||||||
class=\"hlTitle\"><span class='hlContent$hlc_suffix'>";
|
class=\"hlTitle\"><span class='hlContent$hlc_suffix'>";
|
||||||
$reply['content'] .= "<a id=\"RTITLE-$id\"
|
$reply['content'] .= "<a id=\"RTITLE-$id\"
|
||||||
href=\"" . htmlspecialchars($line["link"]) . "\"
|
href=\"" . htmlspecialchars($line["link"]) . "\"
|
||||||
onclick=\"return false;\">" .
|
onclick=\"\">" .
|
||||||
$line["title"];
|
$line["title"];
|
||||||
|
|
||||||
if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
|
if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
|
||||||
|
|
|
@ -1902,11 +1902,14 @@ function postOpenInNewTab(event, id) {
|
||||||
|
|
||||||
function hlClicked(event, id) {
|
function hlClicked(event, id) {
|
||||||
try {
|
try {
|
||||||
if (event.altKey) {
|
if (event.which == 2) {
|
||||||
|
view(id);
|
||||||
|
return true;
|
||||||
|
} else if (event.altKey) {
|
||||||
openArticleInNewWindow(id);
|
openArticleInNewWindow(id);
|
||||||
} else if (!event.ctrlKey) {
|
} else if (!event.ctrlKey) {
|
||||||
view(id);
|
view(id);
|
||||||
return true;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
toggleSelected(id);
|
toggleSelected(id);
|
||||||
toggleUnread(id, 0, false);
|
toggleUnread(id, 0, false);
|
||||||
|
|
Loading…
Reference in New Issue