mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Call preventDefault() when a keyboard shortcut is executed
This commit is contained in:
parent
8c65c78904
commit
9440bf47a5
4 changed files with 18 additions and 14 deletions
|
@ -1,8 +1,5 @@
|
|||
class NavHandler {
|
||||
setFocusToSearchInput(event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
setFocusToSearchInput() {
|
||||
let toggleSwitchElement = document.querySelector(".search-toggle-switch");
|
||||
if (toggleSwitchElement) {
|
||||
toggleSwitchElement.style.display = "none";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue