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;
|
||||
}
|
||||
} else if (event.key === 'Enter') {
|
||||
if(document.activeElement.classList.contains('downvote_button') || document.activeElement.classList.contains('upvote_button')) {
|
||||
document.activeElement.click();
|
||||
if(currentPost) {
|
||||
currentPost.querySelector('.post_teaser_title_a').click();
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue