mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
more keyboard shortcuts
This commit is contained in:
parent
8045b4fad5
commit
7f14dc4bbb
1 changed files with 2 additions and 2 deletions
|
@ -388,8 +388,8 @@ function setupKeyboardShortcuts() {
|
||||||
didSomething = true;
|
didSomething = true;
|
||||||
}
|
}
|
||||||
} else if (event.key === 'Enter') {
|
} else if (event.key === 'Enter') {
|
||||||
if(document.activeElement.classList.contains('downvote_button') || document.activeElement.classList.contains('upvote_button')) {
|
if(currentPost) {
|
||||||
document.activeElement.click();
|
currentPost.querySelector('.post_teaser_title_a').click();
|
||||||
didSomething = true;
|
didSomething = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue