We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3510940 commit f95034eCopy full SHA for f95034e
themes/esphome-theme/assets/js/search.js
@@ -181,7 +181,7 @@ document.addEventListener('DOMContentLoaded', function() {
181
document.addEventListener('keydown', function (event) {
182
if (!(searchInput === document.activeElement) && event.key === '/') { // Use '/' key as trigger
183
event.preventDefault(); // Prevent the '/' key from being entered in the search box
184
- if (isMobile)
+ if (isMobileScreen())
185
openMenu();
186
searchInput.focus();
187
}
0 commit comments